天天看點

yum 下載下傳軟體包

[root@localhost ~]# rpm -qa | grep yum-utils # 檢視系統是否安裝yum 自帶工具 yumdownloader

[root@localhost ~]# yum -y install yum-utils # 安裝 yum 工具。

[root@localhost ~]# rpm -qa | grep yum-utils # 檢視安裝工具。

yum-utils-1.1.16-21.el5.centos

[root@localhost ~]# yumdownloader httpd # 下載下傳軟體包。

loaded plugins: fastestmirror

loading mirror speeds from cached hostfile

httpd-2.2.3-92.el5.centos.x86_64.rpm | 1.3 mb 00:07

[root@localhost ~]# ls # 檢視下載下傳軟體包。

httpd-2.2.3-92.el5.centos.x86_64.rpm

方法二:

[root@localhost ~]# yum -y install yum-downloadonly

[root@localhost ~]# rpm -qa | grep yum-downloadonly

yum-downloadonly-1.1.16-21.el5.centos

[root@localhost ~]# yum -y install --downloadonly --downloaddir=/tmp/ httpd

[root@localhost ~]# ls /tmp/

繼續閱讀