You are not logged in.

#1 2008-10-26 23:24:42

syazhani
Member
Registered: 2007-09-05
Posts: 16

Checking a package install directory with pacman

Hello fellow archers.

How do I check where pacman installed a package without having to look for the PKGBUILD manually?
It's annoying to hunt where a binary is put in after package installation.

Thanks in advance.

Offline

#2 2008-10-26 23:31:40

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Checking a package install directory with pacman

The PKGBUILD wouldn't help anyway. wink

You can list all files belonging to a package like this:

pacman -Ql <pkg_name>

To find the binaries, this should do the trick:

pacman -Ql <pkg_name> | grep -P '^\S+ (\/usr)?\/bin'

Last edited by Xyne (2008-10-26 23:33:43)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2008-10-26 23:55:55

arkham
Member
From: Stockholm
Registered: 2008-10-26
Posts: 516
Website

Re: Checking a package install directory with pacman

why not

pacman -Ql <pkg_name> | grep '/usr/bin'

It's easier to remember and to type...


"I'm Winston Wolfe. I solve problems."

~ Need moar games? [arch-games] ~ [aurcheck] AUR haz updates? ~

Offline

#4 2008-10-26 23:56:56

syazhani
Member
Registered: 2007-09-05
Posts: 16

Re: Checking a package install directory with pacman

Wow thanks! I was reading the man on --info can't believe how I missed -l just under it. tongue

Well I did hunt a bin based on install directory variable in a PKGBUILD before. Painful. mad

Offline

#5 2008-10-27 00:10:03

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Checking a package install directory with pacman

ooops, hit 'quote' instead of 'edit'

Last edited by Xyne (2008-10-27 00:13:32)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2008-10-27 00:12:46

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: Checking a package install directory with pacman

Xyne wrote:
arkham wrote:

why not

pacman -Ql <pkg_name> | grep '/usr/bin'

It's easier to remember and to type...

That would miss all binaries in '/bin'.

The best might be to use

pacman -Ql <pkg_name> | grep '/bin'

and just visually filter anything that happens to be on a path with a bin* dir in it (/home/grandma/bingo_cards/etc)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB