[CentOS] is yum a complete substitute of rpm?

Peter Kjellstrom cap at nsc.liu.se
Mon Feb 15 10:10:14 UTC 2010


On Saturday 13 February 2010, Robert P. J. Day wrote:
> On Sat, 13 Feb 2010, Jim Green wrote:
...
> > Thank Robert and Ron, Could you list an example where I need to use
> > rpm command alone? I used rpm to install stand alone package if that
> > is the case.
>
>   i suspect there are yum alternatives for some of these but here's
> some stuff i like:
>
>   $ rpm -qa			# list all installed packages
>   $ rpm -qR <pkgname>		# list dependencies of package
>   $ rpm -ql <pkgname>		# display list of files in package
>   $ rpm -qf <filename>		# what package is <filename> from?
>
> and many others.

One from me:

 $ rpm -V <pkgname>         # verify all files from installed pkg <pkgname>

/Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.centos.org/pipermail/centos/attachments/20100215/8ec24576/attachment.sig>


More information about the CentOS mailing list