Linux YUM下载指定rpm包

来源:互联网 发布:windows pe如何分区 编辑:程序博客网 时间:2024/05/01 09:10

1 yum install yum-utils -y

[root@cent-2 ~]# yum install yum-utils -y...Downloading Packages:(1/3): libxml2-2.7.6-21.el6_8.1.x86_64.rpm                                                                                                                                       | 805 kB     00:00(2/3): libxml2-python-2.7.6-21.el6_8.1.x86_64.rpm                                                                                                                                | 325 kB     00:00(3/3): yum-utils-1.1.30-37.el6.noarch.rpm                                                                                                                                        | 112 kB     00:00--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                                                                                   1.4 MB/s | 1.2 MB     00:00Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction  Updating   : libxml2-2.7.6-21.el6_8.1.x86_64                                                                                                                                                      1/4  Installing : libxml2-python-2.7.6-21.el6_8.1.x86_64                                                                                                                                               2/4  Installing : yum-utils-1.1.30-37.el6.noarch                                                                                                                                                       3/4  Cleanup    : libxml2-2.7.6-20.el6.x86_64                                                                                                                                                          4/4  Verifying  : libxml2-2.7.6-21.el6_8.1.x86_64                                                                                                                                                      1/4  Verifying  : libxml2-python-2.7.6-21.el6_8.1.x86_64                                                                                                                                               2/4  Verifying  : yum-utils-1.1.30-37.el6.noarch                                                                                                                                                       3/4  Verifying  : libxml2-2.7.6-20.el6.x86_64                                                                                                                                                          4/4Installed:  yum-utils.noarch 0:1.1.30-37.el6Dependency Installed:  libxml2-python.x86_64 0:2.7.6-21.el6_8.1Dependency Updated:  libxml2.x86_64 0:2.7.6-21.el6_8.1Complete!

2 yumdownloader下载指定rpm包

[root@cent-1 ~]# yumdownloader unixODBC-2.2.14-14.el6.x86_64Loaded plugins: fastestmirrorLoading mirror speeds from cached hostfileepel/metalink                                                                                                                                                                    | 5.5 kB     00:00 * base: mirrors.aliyun.com * epel: mirrors.neusoft.edu.cn * extras: mirrors.zju.edu.cn * updates: mirrors.aliyun.combase                                                                                                                                                                             | 3.7 kB     00:00epel                                                                                                                                                                             | 4.3 kB     00:00epel/primary_db                                                                                                                                                                  | 5.9 MB     00:05extras                                                                                                                                                                           | 3.4 kB     00:00updates                                                                                                                                                                          | 3.4 kB     00:00unixODBC-2.2.14-14.el6.x86_64.rpm                                                                                                                                                | 378 kB     00:00[root@cent-1 ~]# lsunixODBC-2.2.14-14.el6.x86_64.rpm
1 0
原创粉丝点击