????YUM??Yellow dog Updater Modified????????????yellow dog??????а???????Terra Soft?з?????pythonд????????????yup(yellow dog updater)???????????Linux@Duke?????????и???????д?????yum???????????????????????/???rpm???????rpm????????????????????????????????????yum???????????п????repository????????壬???????????????????http??ftp????????????????????????????rpm??header?? header??????rpm???????????????????????????????????????????.???????????Щ header????????????????????????????μ?????
????????????rpm?????????????????????????????yum???rpm?????yum??????????????rpm?????????repository??????????????RHEL??yum????????????????????????????????????????yum????Щ?????????????????YUM???????????????????????????Red Hat Enterprise Linux Server release 6.6???鳡???????????汾??Linux???в??
????????????????????
?????????????????????????????vSphere Client?????????????“??????”——>“???”——>“CD/DVD??????”?????????????ISO??????????????????????????????????????????????????????????????????????????鷳?????????????????????????????
????[root@getlnx06 ~]# mkdir /mnt/cdrom
????[root@getlnx06 ~]# mount -t iso9660 /dev/cdrom  /mnt/cdrom
????mount: block device /dev/sr0 is write-protected?? mounting read-only
????[root@getlnx06 ~]#
???????????????YUM?
[root@getlnx06 ~]#  cd /etc/yum.repos.d/
[root@getlnx06 yum.repos.d]# ls
redhat.repo   rhel-source.repo
[root@getlnx06 yum.repos.d]touch rhel-media.repo
[root@getlnx06 yum.repos.d]# vi rhel-media.repo
[media]
name=Red Hat Enterprise Linux 6.6
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-redhat-release
???????yum?????????
[root@getlnx06 yum.repos.d]# yum clean all
Loaded plugins: product-id?? security?? subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Cleaning repos: media
Cleaning up Everything
[root@getlnx06 yum.repos.d]# yum install ftp
????С????
??????yum??????????????????????yum???????????п???????????
[root@getlnx06 yum.repos.d]# yum clean all
Loaded plugins: product-id?? security?? subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Error: File contains no section headers.
file: file:///etc/yum.repos.d/rhel-media.repo?? line: 1
'name=Red Hat Enterprise Linux 6.6 '