You are not logged in.

#1 2011-07-20 01:26:01

antony
Member
Registered: 2011-07-14
Posts: 43

pacman equivalent of "aptutude why"

Hi,
Is there a way to ask pacman why a package was autoinstalled? (i.e. as a dependency of which package)
Thanks,
Antony

Offline

#2 2011-07-20 01:31:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: pacman equivalent of "aptutude why"

The Pacman Rosetta on the wiki has the most comprehensive list of pacman's commands and their correlates in the other package manages.

You can use the query option with the info switch (-Qi) to print information about an installed package. See man pacman for the details.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-07-21 04:05:23

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: pacman equivalent of "aptutude why"

If a package was installed as a dependency, you can run this command to see which packages require it:

pacman -Qi packagename | grep Required

It may not help if its required by multiple packages, but its a start.

Offline

#4 2011-07-21 07:14:51

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: pacman equivalent of "aptutude why"

pacman -Qii packagename

shows all installed packages depending on packagename.

Offline

#5 2011-07-21 07:18:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman equivalent of "aptutude why"

schuay wrote:

pacman -Qii packagename

shows all installed packages depending on packagename.

I fail to see the benefits of '-Qii' over what the previous posters suggested. Backup Files don't matter much here.

Offline

#6 2011-07-21 08:38:28

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: pacman equivalent of "aptutude why"

jasonwryan wrote:

The Pacman Rosetta on the wiki has the most comprehensive list of pacman's commands and their correlates in the other package manages.

This is a GREAT article, thanks for posting.

Offline

#7 2011-07-21 08:43:08

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman equivalent of "aptutude why"

graysky wrote:
jasonwryan wrote:

The Pacman Rosetta on the wiki has the most comprehensive list of pacman's commands and their correlates in the other package manages.

This is a GREAT article, thanks for posting.

C'mon, the wiki has only a couple thousand articles, shame on you if you haven't glanced them over already ;-)

You may also like a more general summary http://distrowatch.com/dwres.php?resour … management

Offline

#8 2011-07-21 12:43:44

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: pacman equivalent of "aptutude why"

There's also pactree (included with pacman), which will show recursive dependencies of a package.

Offline

#9 2011-07-21 14:54:39

smartass
Member
From: Prague, Czech Republic
Registered: 2011-02-25
Posts: 60

Re: pacman equivalent of "aptutude why"

falconindy wrote:

There's also pactree (included with pacman), which will show recursive dependencies of a package.

[rant]
This really ought to be mentioned somewhere. The only wiki article containing any reference is namcap, which I doubt non-dev users will read.
And I don't think most people will issue `pacman -Ql pacman` just to find the binary and other tools that the pacman package contains. Yes, most of them are more like dev-tools, but why shouldn't the users be aware of what great tools there are in the one of the most important package of the whole distro???

C'mon devs, at least mention it in the man pages of pacman or something.
[/rant]

Ok, what would be an appropriate way to document this on the wiki?
a)since makepkg is included in the package, I'd make a separate page for pactree
b) just mention it on the pacman wiki article

Last edited by smartass (2011-07-21 15:04:42)


KISS my Arch, Willy Gates!

Offline

#10 2011-07-21 15:40:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman equivalent of "aptutude why"

smartass wrote:
falconindy wrote:

There's also pactree (included with pacman), which will show recursive dependencies of a package.

[rant]
This really ought to be mentioned somewhere. The only wiki article containing any reference is namcap, which I doubt non-dev users will read.
And I don't think most people will issue `pacman -Ql pacman` just to find the binary and other tools that the pacman package contains. Yes, most of them are more like dev-tools, but why shouldn't the users be aware of what great tools there are in the one of the most important package of the whole distro???

C'mon devs, at least mention it in the man pages of pacman or something.
[/rant]

Ok, what would be an appropriate way to document this on the wiki?
a)since makepkg is included in the package, I'd make a separate page for pactree
b) just mention it on the pacman wiki article

The whole http://www.archlinux.org/packages/commu … n-contrib/ package is cool, e.g. bacman deserves a mention too.

Offline

#11 2011-07-21 18:54:07

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: pacman equivalent of "aptutude why"

karol wrote:
schuay wrote:

pacman -Qii packagename

shows all installed packages depending on packagename.

I fail to see the benefits of '-Qii' over what the previous posters suggested. Backup Files don't matter much here.

Oops, you're right. The way I remembered it, you needed to pass -i twice to see the Required By line, but that's obviously not correct.

Offline

#12 2011-07-22 01:07:54

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,362

Re: pacman equivalent of "aptutude why"

smartass wrote:

Ok, what would be an appropriate way to document this on the wiki?
a)since makepkg is included in the package, I'd make a separate page for pactree
b) just mention it on the pacman wiki article

Even if you make a separate page you'd need to link it in the pacman article or it'd not really serve a purpose.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#13 2011-07-23 13:56:29

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: pacman equivalent of "aptutude why"

There is also this:

expac -Q %N whateverpackageyouwanttocheck

Handy for scripts and such.

Last edited by Mr.Elendig (2011-07-23 13:56:58)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#14 2011-07-24 19:15:53

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: pacman equivalent of "aptutude why"

schuay wrote:
karol wrote:
schuay wrote:

pacman -Qii packagename

shows all installed packages depending on packagename.

I fail to see the benefits of '-Qii' over what the previous posters suggested. Backup Files don't matter much here.

Oops, you're right. The way I remembered it, you needed to pass -i twice to see the Required By line, but that's obviously not correct.

You were thinking about -Si and -Sii most likely.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB