This repository has been archived by the owner on Apr 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Dpkg rpm comparison
dpilgrim edited this page Jul 19, 2011
·
1 revision
dpkg and rpm, respectively, handle package management for Debian-based and Red Hat-based distributions, respectively. These are common package management tasks for each.
- dpkg: dpkg -Gi package(s).deb
- rpm: rpm -Uvh packages(s).rpm
- dpkg -Gi package(s).deb
- rpm -Uvh packages(s).rpm
- dpkg -r package
- dpkg -e package
- dpkg -s package | grep ^Depends:
- rpm -q —requires package
- dpkg —purge —dry-run package
- rpm -q —whatrequires package
- dpkg -I package.deb
- rpm -q -i -p package.rpm
- dpkg -l package
- rpm -q package
- dpkg -x package.deb
- rpm2cpio package.rpm | cpio -id
A collection of mutually compatible packages and versions is called a distribution. An accessible online store (or online pointer to stores) of a distribution is called a repository. apt is the repository management tool for dpkg, and yum is the repository management tool for rpm. These are common repository management tasks for each.
- apt-get update
- yum auto-updates each time it is called
- cat /etc/apt/sources.list
- yum repolist
- apt-get -i package
- yum install package
- apt-get dist-upgrade
- yum upgrade
- apt-get remove package
- yum erase package
- apt-cache search pattern
- yum search pattern