系统安装配置yum
[
root@rac1 ~]# dd if=/dev/sr0 of=/rhel6u5.iso
[
root@rac1 ~]# vi /etc/fstab
/rhel6u5.iso /mnt/rhel iso9660 loop,ro 0 0
[
root@rac1 ~]# mount -a
[
root@rac1 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_rac1-lv_root 118G 16G 97G 14% /
tmpfs 20G 323M 20G 2% /dev/shm
/dev/sda2 194M 35M 150M 19% /boot
/dev/sda1 200M 260K 200M 1% /boot/efi
/rhel6u5.iso 3.6G 3.6G 0 100% /mnt/rhel
/dev/sr0 3.6G 3.6G 0 100% /media/RHEL_6.5 x86_64 Disc 1
[
root@rac1 ~]# cat /etc/yum.repos.d/yum.repo
[base]
name=base
baseurl=file:///mnt/rhel
enabled=1
gpgcheck=0
[
root@rac1 ~]#yum list
[
root@rac1 ~]#yum clean all
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26179376/viewspace-1981679/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26179376/viewspace-1981679/