User Tools

Site Tools


This is an old revision of the document!

RPM handling

List package vendors

List packages from 3 party vendors (Not Red Hat).

 rpm -qa --qf '%{NAME} %{VENDOR}\n' | grep -v "Red Hat, Inc."

Query Package Install Order and Dates

rpm -qa --last

Show all installed GPG keys

rpm -q gpg-pubkey --qf '%{name}-%{version}-%{release} --> %{summary}\n' 

Extract files from RPM package

rpm2cpio httpd-2.2.3-31.el5_4.2.x86_64.rpm | cpio -idmv

Extract just one file from RPM package

rpm2cpio logrotate-1.0-1.i386.rpm |cpio -ivd etc/logrotate.conf

Yum handling

Only download packages

You might want to download packages without installing them.

Make sure yum-downloadonly plugin is installed

yum install yum-downloadonly

Update system but only download packages do not install them

yum update -y --downloadonly

Default download cache is /var/cache/yum/. This cn be overidden with –downloaddir option

Transaction Check Error

Getting conflict errors between 32bit and 64 bit packages when doing yum update

Transaction Check Error:

file blablabla from install of hal- conflicts with file from package hal-

rpm -Uvh --force /var/cache/yum/rhel-x86_64-server-5/packages/hal-

Now re-run yum update. Now everything works fine.

yum_rpm_handling.1306933117.txt.gz · Last modified: 2011/09/16 12:12 (external edit)