linux配置本地yum安裝--FTP yum

huangdazhu發表於2016-05-17
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章