RPM and DPKG command reference

663阅读 0评论2009-09-03 greendays
分类:LINUX

RPM and DPKG command reference

Welcome to RPM and DPKG command reference. RPM is a package manager used in Red Hat Enterprise, Fedora, SuSE and many other Linux distributions. DPKG is a package manager used in Debian, Ubuntu and other Debian based distributions.

Below we will refer to {file.deb} or {file.rpm} which is a package file on the filesystem. When we refer to {package} we are talking about installed package

Installing / updating

RPM DPKG Description
rpm -i {file.rpm} dpkg -i {file.deb} Install package from a file
rpm -U {file.rpm} dpkg -i {file.deb} Update package from a file

Remove

RPM DPKG Description
rpm -e {package} dpkg -r {package} Remove a installed package

Querying

RPM DPKG Description
rpm -qa dpkg -l List all installed packages
rpm -ql {package} dpkg -L {package} List files in a installed package
rpm -qi dpkg -p {package} Show information about a installed package
rpm -qpi {file.rpm} dpkg -I {file.deb} Show information about package file
rpm -qpl {file.rpm} dpkg -c {file.deb} List files in a package file

Verifying

RPM DPKG Description
rpm -Va na Verify all installed packages
rpm -V {package} na Verify installed package

上一篇:awk中system函数的用法
下一篇:yum remove libgcc-3.4.6-11的后果!不要轻易Yes,看看有多少不相关依赖!!