使用yum下载包及其依赖包 - graybull's Blog

使用yum下载包及其依赖包

graybull posted @ 2013年2月24日 21:22 in Unix/Linux with tags install linux yum downloadonly , 4299 阅读

有时候,我们仅仅想下载安装包及其依赖包,而暂时不安装它们。嗯,你太无聊了吧。

我目前能想到的情景是:我想建立一个自己的yum服务器,上边放着很多包,供内部网络的多台机器使用。所以首先得下载包。

  • 安装yum-downloadonly
  • 使用yum-downloadonly

安装yum-downloadonly

首先,要有一个可用的yum源。参考:http://graybull.is-programmer.com/posts/37702.html

安装yum-downloadonly

$ sudo yum install yum-downloadonly

使用yum-downloadonly

$ sudo yum install --downloadonly --downloaddir=<diretory>  <package name>

若软件包已安装,则可用reinstall代替install。

--downloadonly指明只下载,不安装;

--downloaddir指定存放包及其依赖包的目录;

Avatar_small
instagram viewer 说:
2019年9月27日 22:56
What can you do with Instagram? Instagram is a social network application which is getting more and more popular recently with the development of smartphone. It's sad but since Instagram is an apps for smartphone, people who don't use smartphone nearly can't see Instagram posts without imgrum- the website displays all the public photos from Instagram. 
Avatar_small
deep cleaning dubai 说:
2019年10月12日 01:05

We offer best maintenance services during abu dhabi, you'll find professional maintenance staff with our company, we at all times give even more importance together with preference to your customers, you'll find thousands for happy users in abu dhabi, we always act as best maintenance services provider in abu dhabi and everywhere on UAE.

Avatar_small
House Cleaning Servi 说:
2021年9月12日 22:39

There is a party of professionals in which are well trained in neuro-scientific housekeeping. They are simply experienced and additionally efficient in just about every house bind. You may well hire a fabulous part-time housemaid for Dubai or pc daily chores try full-time service personnel in Dubai. With us, go to unlock quite a plethora of cleaning offerings.

Avatar_small
maids in dubai 说:
2021年9月27日 21:15

You need to avoid prices your services on the per hr basis, as this could just end up being pricing your own labor -- and carrying this out will not really cover your own skills as well as efficiency when you reach a greater level. A small research upon existing competitors can deliver the prices information you have to let a person set the right price for the cleaning estimates. If you want to work individually, you should put a cost on your own labor as well as practice through cleaning your own house to determine time required to do certain cleansing jobs.

Avatar_small
monthly maid service 说:
2023年8月27日 21:53

A huge project just like painting the surface of your property might seem to be easy initially but if you think about the components and tools necessary for this sort of project along with experience, you may well consider hiring the most effective professional residence painter you will find. Our desire is to offer easy methods to find the most effective house portray contractor locally for your following project.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee