码迷,mamicode.com
首页 > 其他好文 > 详细

yumdownloader

时间:2019-02-22 15:17:18      阅读:411      评论:0      收藏:0      [点我收藏+]

标签:check   root   2.3   proc   rpc   yum 源   install   ade   nfs-utils   

yumdownloader
yum 源安装非常方便解决依赖包问题,但是有时当你只需要下载安装包和依赖包时就用到了 yumdownloader,该命令是在yum-untils组件中
yum install yum-utils
例如:yumdownloader nfs-utils --destdir /tmp/nfs-utils downloaded_rpms --resolve
--destdir 指定下载目录
--downloaded_rpms --resolve 同时下载相关的rpm依赖包

例如
[root@test tmp]# yumdownloader nfs-utils --destdir /tmp/nfs/ downloaded_rpms --resolve

Loaded plugins: product-id
No Match for argument downloaded_rpms
--> Running transaction check
---> Package nfs-utils.x86_64 1:1.2.3-78.el6_10.1 will be installed
--> Processing Dependency: libtirpc >= 0.2.1-11 for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Processing Dependency: python-argparse for package: 1:nfs-utils-1.2.3-78.el6_10.1.x86_64
--> Running transaction check
---> Package libtirpc.x86_64 0:0.2.1-6.el6_4 will be updated
---> Package libtirpc.x86_64 0:0.2.1-15.el6 will be an update
---> Package python-argparse.noarch 0:1.2.1-2.1.el6 will be installed
--> Finished Dependency Resolution
nfs-utils-1.2.3-78.el6_10.1.x86_64.rpm | 337 kB 00:00
libtirpc-0.2.1-15.el6.x86_64.rpm | 82 kB 00:00
python-argparse-1.2.1-2.1.el6.noarch.rpm | 48 kB 00:00
[root@test tmp]# cd nfs/
[root@test nfs]# ls
libtirpc-0.2.1-15.el6.x86_64.rpm nfs-utils-1.2.3-78.el6_10.1.x86_64.rpm python-argparse-1.2.1-2.1.el6.noarch.rpm

yumdownloader

标签:check   root   2.3   proc   rpc   yum 源   install   ade   nfs-utils   

原文地址:https://blog.51cto.com/13396187/2353464

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!