Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Package managers

1,274 bytes added, 15:56, 13 November 2007
created
With OpenVZ, you can run many different Linux distributions on a single box. One particular thing in which distributions differ is package management. This article summarizes how to perform various common package management tasks on a different distributions.

'''Feel free to add the missing pieces'''

{| class="wikitable"
! align="center" | Action
! RPM<br/><small>RHEL, Fedora, CentOS, Mandrake, ...</small>
! DEB<br/><small>Debian, Ubuntu</small>
! Ebuild<br/><small>Gentoo, Sabayon</small>
|-
| colspan="4" align="center" | '''Basic queries'''
|-
! List of all installed packages
|| <code>rpm -qa</code>
|| <code>dpkg -l</code>
|| <code>equery list</code>
|-
! List of installing packages matching ''substr''
|| <code>rpm -qa ''\*substr\*''</code>
|| <code>dpkg -l ''\*substr\*''</code>
|| <code>equery list ''substr''</code>
|-
! Basic information about an installed ''package''
|| <code>rpm -qi ''package''</code>
|| <code>dpkg -p ''package''</code>
|| <code>-???-</code>
|-
! List of files in a given ''package''
|| <code>rpm -ql ''package''</code>
|| <code>dpkg -L ''package''</code>
|| <code>equery files ''package''</code>
|-
! Which package a ''file'' belongs to?
|| <code>rpm -qf ''file''</code>
|| <code>-???-</code>
|| <code>equery belongs ''file''</code>
|}