[CentOS] Yum equivalent of rpm -i --test

Wojtek Pilorz wpilorz at bdk.pl
Thu Apr 10 09:55:36 UTC 2008


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




More information about the CentOS mailing list