====== Ubuntu - Packages - Linux Distribution Equivalents ====== Shows equivalent commands to manage packages from different Linux distributions. ^ ^Ubuntu^RedHat^ |Package file extension|.deb|.rpm| |Repository location configuration|/etc/apt/sources.list|/etc/yum.conf| |Check for package upgrades|apt-get -s upgrade apt-get -s dist-upgrade|yum check-update| |Find package that installed a file|dpkg --search filename|rpm -qf filename| |Find package that provides a particular file|apt-file search filename|yum provides filename| |Get information about a package|apt-cache show package_name|yum info package_name| |Get information about a package file|dpkg --info package.deb|rpm -qpi package.rpm| |Get information about an installed package|dpkg --status package_name|rpm -qi package_name| |Install a package file|dpkg --install package.deb|rpm -i package.rpm| |Install a package from a repository|apt-get install package_name|yum install package_name| |List files in a package|dpkg --listfiles package.deb|rpm -ql package.rpm| |List files in a package file|dpkg --contents package.deb|rpm -qpl package.rpm| |List documentation files in a package file| |rpm -qpd package.rpm| |List configuration files in a package file| |rpm -qpc package.rpm| |Remove a package|apt-get remove package_name|rpm -e package_name| |Remove packages from the local cache directory|apt-get clean|yum clean packages| |Remove a package with configuration files|apt-get purge package_name|yum remove package_name| |Show the packages a given package depends on|apt-cache depends package_name|rpm -qR package_name| |Show other packages that depend on a given package (reverse dependency)|apt-cache rdepends package_name|rpm -q --whatrequires [args]| |Upgrade packages|apt-get upgrade|rpm -Uvh [args]| |Upgrade the entire system|apt-get dist-upgrade|yum upgrade|