[root@localhost /]#mount /dev/dvd /mnt
[root@localhost /]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]#
[root@localhost yum.repos.d]# touch myself.repo
[rhel-update]
name=RHEL5-Update-10
baseurl=file:///mnt/Server/
enable=1
gpgcheck=0
[root@localhost yum.repos.d]# yum clean all
Loaded plugins: rhnplugin, security
Cleaning up Everything
[root@localhost yum.repos.d]# yum makecache
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
rhel-update | 1.3 kB 00:02
rhel-update/filelists | 2.7 MB 00:00
rhel-update/other | 7.0 MB 00:01
rhel-update/group | 1.0 MB 00:00
rhel-update/primary | 845 kB 00:00
rhel-update 3040/3040
rhel-update 3040/3040
rhel-update 3040/3040
Metadata Cache Created
[root@localhost yum.repos.d]# yum install vsftpd
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.0.5-16.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================
Package Arch Version Repository Size
=====================================================================================
Installing:
vsftpd x86_64 2.0.5-16.el5 rhel-update 139 k
Transaction Summary
=====================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 139 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : vsftpd 1/1
Installed:
vsftpd.x86_64 0:2.0.5-16.el5
Complete!
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30633998/viewspace-1971897/
,如需转载,请注明出处,否则将追究法律责任。