Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2045037
  • 博文数量: 470
  • 博客积分: 10206
  • 博客等级: 上将
  • 技术积分: 5620
  • 用 户 组: 普通用户
  • 注册时间: 2008-07-03 12:50
文章分类

全部博文(470)

文章存档

2012年(1)

2011年(18)

2010年(47)

2009年(404)

分类: LINUX

2009-09-03 21:24:36

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

阅读(634) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~