How does one do this? Reading through the man pages for yum it doesn't look like its possible? I could use rpm, but I was hoping to pull down deps through yum automagically.
Thanks! jlc
On Wed, Apr 09, 2008 at 11:08:15AM -0600, Joseph L. Casale wrote:
How does one do this? Reading through the man pages for yum it doesn't look like its possible? I could use rpm, but I was hoping to pull down deps through yum automagically.
Thanks! jlc
For CentOS5, you could use yum-downloadonly plugin : # rpm -qi yum-downloadonly [ output shortened ] Name : yum-downloadonly Relocations: (not relocatable) Group : System Environment/Base Source RPM: yum-utils-1.0.4-3.el5.centos.2.src.rpm URL : http://linux.duke.edu/yum/download/yum-utils/ Summary : Yum plugin to add downloadonly command option Description : This plugin adds a --downloadonly flag to yum so that yum will only download the packages and not install/update them.
On Wed, Apr 09, 2008 at 01:43:45PM -0600, Joseph L. Casale wrote:
For CentOS5, you could use yum-downloadonly plugin :
Wojtek, Will this still allow rpm to "--test" the install of a local rpm and pull in the deps and simulate the install?
When you have the plugin installed and enabled it will enable --installonly option in yum;
You can use it with yum shell also, e.g.
yum --installonly shell
install gcc transaction run exit
Yum will check deps, download rpm files to yum cache directory as defined in yum config file.
You can then to whatever you want with the files, for example run rpm with options you need on them.
Thanks! jlc
You are welcome,
Wojtek
Joseph L. Casale wrote:
For CentOS5, you could use yum-downloadonly plugin :
Wojtek, Will this still allow rpm to "--test" the install of a local rpm and pull in the deps and simulate the install?
Yum (in the default incarnation) requires that you press a "Y" for yes to proceed with the transaction.
It will do all the dependency calcs and present a list of things needed, but not install if you select NO.
Also, you can just use some of the yum switches to get a deplist ... like:
yum deplist <pkg_name>
or lastly, you can use reqoquery that is part of yum-utils (after installing the yum-utils package, do man repoquery).
SO .. there is no dry run for yum specifically, but depending on what you really want, there are several alternatives.