今天来说下在centos下下载软件,不安装的方法:
方法一:通过yum自带一个工具:yumdownloader
[root@web1 ~]# rpm -qa |grep yum-utils
[root@web1 ~]# yum -y install yum-utils*
[root@web1 ~]# rpm -ql yum-utils
/usr/bin/debuginfo-install
/usr/bin/package-cleanup
/usr/bin/repo-graph
/usr/bin/repo-rss
/usr/bin/repoclosure
/usr/bin/repodiff
/usr/bin/repomanage
/usr/bin/repoquery
/usr/bin/reposync
/usr/bin/repotrack
/usr/bin/verifytree
/usr/bin/yum-builddep
/usr/bin/yum-debug-dump
/usr/bin/yum-groups-manager
/usr/bin/yumdownloader #可以看到yumdownloade这个工具是由yum-utils这个软件安装生成的!
安装好后就可以直接使用了,使用非常简单,如下:
[root@web1 ~]# ls
sys_init.sh
[root@web1 ~]# yumdownloader vlock
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirror.centos.org
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirrors.btte.net
vlock-1.3-23.i386.rpm | 11 kB 00:00
[root@web1 ~]# ls
sys_init.sh vlock-1.3-23.i386.rpm