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

Johnny Hughes johnny at centos.org
Thu Apr 10 11:31:57 UTC 2008


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20080410/f65a2958/attachment.sig>


More information about the CentOS mailing list