Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Package managers

86 bytes added, 02:15, 26 December 2008
Commands
|| <code>rpm -q --requires ''package''</code>
|| <code>dpkg-query -W -f='${Depends}\n' ''package''</code>
|| <code>equery depgraph -???-depth=1 ''package''</code>
|-
! Which installed package(s) provide a given ''dependency''<ref name="dep">In rpm world, a ''dependency'' can be a package name, a file, or a special atom like <code>perl(IO::Zlib)</code> for a perl module. In deb world, this can be either real or virtual package name.</ref>?
|| <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>
|-
! Show what prevents installation of a package
|| <code>-???-</code>
|| <code>aptitude why-not package</code>
|| <code>emerge -???-pv ''package''</code>
|-
! Get package source files
|| <code>-???-</code>
|| <code>apt-get source ''package''</code>
|| <code>emerge -???-f ''package''</code>
|-
! colspan="4" align="center" | <big>'''Working with package files'''</big>
5
edits