1:首先将ISO文件拷贝到服务器上
2:进行ISO文件挂载
mount -o loop /backup/soft/rhel-server-6.4-x86_64-dvd.iso /mnt/cdrom/
3:配置yum
[root@db_test yum.repos.d]# cat local.repo
[base]
name=local
baseurl=file:///mnt/cdrom/
gpgcheck=0
enabled=1
vi /etc/yum.repos.d/yumftp.repo
[ftp]
name=ftpyum
baseurl=ftp://10.10.15.110/Server
gpgcheck=0
4:进行yum 安装
[root@db_test yum.repos.d]# yum install vsftpd
Loaded plugins: product-id, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package vsftpd.x86_64 0:2.2.2-11.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
vsftpd x86_64 2.2.2-11.el6 base 151 k
Transaction Summary
===============================================================================================================================================================================================
Install 1 Package(s)
Total download size: 151 k
Installed size: 331 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : vsftpd-2.2.2-11.el6.x86_64 1/1
Installed products updated.
Verifying : vsftpd-2.2.2-11.el6.x86_64 1/1
Installed:
vsftpd.x86_64 0:2.2.2-11.el6
Complete!
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/28869493/viewspace-2101206/,如需转载,请注明出处,否则将追究法律责任。