Editing Package managers
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 121: | Line 121: | ||
|| <code>pacman -Si ''package''</code> | || <code>pacman -Si ''package''</code> | ||
|- | |- | ||
− | ! | + | ! What 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 --whatprovides ''dependency''</code> | || <code>rpm -q --whatprovides ''dependency''</code> | ||
|| <code>dpkg-query -W -f='${Package}: ${Provides}\n' '*' | grep ': .*''dependency''<nowiki>'</nowiki></code> | || <code>dpkg-query -W -f='${Package}: ${Provides}\n' '*' | grep ': .*''dependency''<nowiki>'</nowiki></code> | ||
Line 127: | Line 127: | ||
|| | || | ||
|- | |- | ||
− | ! | + | ! What package(s) require a given ''dependency''<ref name="dep"/>? |
|| <code>rpm -q --whatrequires ''dependency''</code> | || <code>rpm -q --whatrequires ''dependency''</code> | ||
|| <code>dpkg-query -W -f='${Package}: ${Depends}\n' '*' | grep ': .*''package''<nowiki>'</nowiki></code><br><code>aptitude why ''package''</code><ref name="why">Actualy shows the whole dpendency situation that leads to install this package</ref> | || <code>dpkg-query -W -f='${Package}: ${Depends}\n' '*' | grep ': .*''package''<nowiki>'</nowiki></code><br><code>aptitude why ''package''</code><ref name="why">Actualy shows the whole dpendency situation that leads to install this package</ref> |