Changes

Jump to: navigation, search

Package managers

151 bytes removed, 10:05, 30 November 2011
remove slackware column since it's empty (feel free to re-add non-empty one)
! RPM<br/><small>RHEL, Fedora, CentOS, Mandriva, SUSE, ...</small>
! DEB<br/><small>Debian, Knoppix, Ubuntu, ...</small>
! Slackpkg<br/><small>Slackware, SLAX, ...</small>
! Ebuild<br/><small>Gentoo and derivatives (Sabayon, Ututo, ...)</small>
! Pacman<br/><small>Arch Linux</small>
|| <code>rpm -qa</code>
|| <code>dpkg -l</code>
||
|| <code>equery list '*'</code>
|| <code>pacman -Qi</code>
|| <code>rpm -qa ''\*substr\*''</code>
|| <code>dpkg -l ''\*substr\*''</code>
||
|| <code>equery list ''substr''</code>
|| <code>pacman -Q | grep ''substr''</code>
|| <code>rpm -qi ''package''</code>
|| <code>dpkg -p ''package''</code>
||
|| <code>eix ''package''</code>
|| <code>pacman -Qi ''package''</code>
|| <code>rpm -ql ''package''</code>
|| <code>dpkg -L ''package''</code>
||
|| <code>equery files ''package''</code>
|| <code>pacman -Ql ''package''</code>
|| <code>rpm -qf ''file''</code>
|| <code>dpkg -S ''file''</code>
||
|| <code>equery belongs ''file''</code>
|| <code>pacman -Qo ''file''</code>
|| <code>rpm -V ''package''</code>
|| <code>debsums -ca ''package''</code>
||
|| <code>equery check ''package''</code>
||
|| <code>rpm -q --scripts ''package''</code>
|| <code>less /var/lib/dpkg/info/''package''.{pre,post,config}*</code>
||
|| <code>cat `equery which ''package''`</code>
||
|| <code>rpm -q --changelog ''package''</code>
|| <code>zcat /usr/share/doc/package/changelog.Debian.gz</code><br/><code>aptitude [-t release] changelog package</code>
||
|| <code>view /usr/portage/''category''/''package''/ChangeLog</code>
|| <code>pacman -Qc ''package''
|| <code>rpm -ihv ''package_file*.rpm''<br/>yum localinstall ''package_file*.rpm''<ref name="localinstall">In case there are unsatisfied dependencies for ''package_file'', yum will try to get and install it from known repositores.</ref></code>
|| <code>dpkg -i ''package_file*.deb'' <ref name="apt">Usually it is not necessary to download packages manually and install them. Use apt-cache search ''name'' to search for package in configured repositories and apt-get install ''package'' to install package and all it's dependencies</ref></code>
||
|| <code>emerge --usepkg|-k ''package''<ref name="emerge-usepkg">Use a binary package if it is available from $PKGDIR, otherwise emerge from source as usual.</ref></code><br/><code>emerge --usepkgonly|-K ''package''<ref name="emerge-usepkgonly">Use a binary package if it is available from $PKGDIR, otherwise abort.</ref></code>
|| <code>pacman -U ''package''</code>
|| <code>rpm -Uhv ''package_file*.rpm''</code>
|| <code>dpkg -i ''package_file*.deb'' <ref name="apt"/></code>
||
|| <code>emerge --update --usepkg|-k ''package''<ref name="emerge-usepkg"/></code><br/>
<code>emerge --update --usepkgonly|-K ''package''<ref name="emerge-usepkgonly"/></code>
|| <code>dpkg -r ''package''</code><br/>
<code>dpkg -P ''package''</code>
||
|| <code>emerge --unmerge ''package''</code><br/>
<code>emerge --prune ''package''</code>
|| <code>apt-get update && apt-get install ''package''</code><br/>
<code>aptitude update && aptitude install ''package''</code>
||
|| <code>emerge -av ''package''</code>
|| <code>pacman -S ''package''</code>
! Install a debug information files for a ''package''
|| <code>debuginfo-install ''package''</code>
||
||
|| <code>FEATURES="splitdebug installsources" emerge -av ''package''</code>
|| First install the yum-downloadonly plugin by running: <br/><code>yum install yum-downloadonly</code><br/> And then: <br/> <code>yum install|update ''package'' -y --downloadonly --downloaddir=/opt</code>
|| <code>apt-get install --download-only --reinstall ''package''</code><ref name="dpkgdir">Package will reside in /var/cache/apt/archives.</ref><br/><code>aptitude download ''package''</code>
||
|| <code>emerge -avf ''package''</code><ref name="distfiles">Package sources will reside in /usr/portage/distfiles.</ref>
|| <code>pacman -Sw ''package''</code>
|| <code>rpm -q --provides ''package''</code>
|| <code>dpkg-query -W -f='${Provides}\n' ''package''</code>
||
|| <code>equery files ''package'' (package must be installed first)</code>
|| <code>pacman -Ql ''package'' (package must be installed first)</code>
|| <code>rpm -q --requires ''package''</code>
|| <code>dpkg-query -W -f='${Depends}\n' ''package''</code>
||
|| <code>equery depgraph --depth=1 ''package''</code>
|| <code>pacman -Si ''package''</code>
|| <code>rpm -q --whatprovides ''dependency''</code>
|| <code>dpkg-query -W -f='${Package}: ${Provides}\n' '*' | grep ': .*package'</code>
||
|| <code>equery belongs ''dependency''</code>
||
|| <code>rpm -q --whatrequires ''dependency''</code>
|| <code>dpkg-query -W -f='${Package}: ${Depends}\n' '*' | grep ': .*package'</code><br><code>aptitude why package</code><ref name="why">Actualy shows the whole dpendency situation that leads to install this package</ref>
||
|| <code>equery depends ''package''</code>
|| <code>pacman -Qi package | grep Required</code>
|| <code>(yum/rpm tells with --verbose option -v)</code>
|| <code>aptitude why-not package</code>
||
|| <code>emerge -pv ''package''</code>
||
|| <code>yumdownloader --source ''package''</code>
|| <code>apt-get source ''package''</code>
||
|| <code>emerge -f ''package''</code>
|| <code>abs ''repository''/''package''</code>
|| <code>rpm2cpio ''file.rpm'' | cpio -id</code>
|| <code>dpkg -x ''file.deb'' .</code>
||
|| N/A
|| <code>tar -xzf ''package''</code> if ''package''.pkg.tar.gz or<br/><code>tar -xJf ''package''</code> if ''package''.pkg.tar.xz
|| <code>rpm -K ''file.rpm''</code><br/>(yum/rpm also checks GPG-signature and checksums automatically every time the package is installed or upgraded)
|| <code>debsums ''package''</code>
||
|| <code>emerge -f ''package''</code>
||
|| <code>yum provides ''/some/file''</code>
|| First run: <br/><code>apt-file update</code><br/>and then:<br/><code>apt-file search ''/some/file''</code>
||
|| N/A
||
|| <code>yum search ''\*substr\*''</code>
|| <code>apt-cache search ''\*substr\*''</code>
||
|| <code>eix -S ''substr''</code>
|| <code>pacman -Ss ''substr''</code>
|| <code>yum info ''package''</code>
|| <code>apt-cache show ''package''</code>
||
|| <code>eix ''package''</code>
|| <code>pacman -Si ''package''</code>

Navigation menu