Thursday, August 19, 2010

RPM cheat sheet

list installed packages, dpkg -l
rpm -qa

info on an installed package, dpkg -s
rpm -qi

contents of an installed package, dpkg -L
rpm -q -l

package where a file belongs to, dpkg -S
rpm -q -f

extract package contents without installing, dpkg -x
rpm2cpio file.rpm | cpio -idv

No comments:

Post a Comment