You are not logged in.

#1 2009-01-20 18:43:36

anadyr
Member
Registered: 2005-02-10
Posts: 225

find the executable

Hi,

I have a slight nuisance. When I install a program from pacman, I sometimes do not know the executable. for instance in the case of gtk2-theme-switch, I had to search different forums to find out that the command is "switch2". And now I want to experiment with gtk-theme-switch, but again I cannot find the executable.
Until a few months ago, there was an option to view the filelist in the packages database, but that option has unfortunately been removed...

Is there another quick way to find the executable of an installed package?

Offline

#2 2009-01-20 18:49:15

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: find the executable

pacman -Ql <your_package> will list all of the files belonging to a package, including the executable.

Offline

#3 2009-01-20 18:49:52

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: find the executable

yes. pacman.

Edit:Damn..you beat me and you spoonfed him tongue

Last edited by u_no_hu (2009-01-20 18:51:13)


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#4 2009-01-20 18:55:14

sisco311
Member
From: Romania
Registered: 2008-05-23
Posts: 112

Re: find the executable

pacman -Ql package-name

wow, i'm super slow smile

Last edited by sisco311 (2009-01-20 18:55:54)


don't drink unwashed fruit juice.
i never make predictions, especially about the future.

Offline

#5 2009-01-20 18:55:35

chillu
Member
Registered: 2009-01-18
Posts: 33

Re: find the executable

u_no_hu wrote:

Edit:Damn..you beat me and you spoonfed him tongue

Better be careful when you're around wink

Offline

#6 2009-01-20 19:13:51

sisco311
Member
From: Romania
Registered: 2008-05-23
Posts: 112

Re: find the executable

to list the executables:

for i in `pacman -Ql package-name | awk '{print $2}'`; do if [ -x $i -a ! -d $i ]; then echo $i; fi; done


don't drink unwashed fruit juice.
i never make predictions, especially about the future.

Offline

#7 2009-01-20 19:14:53

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: find the executable

sisco311 wrote:

to list the executables:

for i in `pacman -Ql package-name | awk '{print $2}'`; do if [ -x $i -a ! -d $i ]; then echo $i; fi; done

Even better than my usual 'pacman -Ql foo | grep \/bin' tongue

*steals* Thanks!

Last edited by Ranguvar (2009-01-20 19:15:07)

Offline

#8 2009-01-20 22:10:50

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: find the executable

sisco311 wrote:

to list the executables:

for i in `pacman -Ql package-name | awk '{print $2}'`; do if [ -x $i -a ! -d $i ]; then echo $i; fi; done

excellent, it works fine!

Offline

#9 2009-01-21 00:01:23

sisco311
Member
From: Romania
Registered: 2008-05-23
Posts: 112

Re: find the executable

Cool!


Please mark the thread solved.

Edit the original post and add [SOLVED] to the title.

Marking threads as [SOLVED], after a solution has been found will help
others to find an expedient solution for their own issues.


don't drink unwashed fruit juice.
i never make predictions, especially about the future.

Offline

#10 2009-01-23 19:01:51

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

Re: find the executable

I just wanted to add that I've added a "--find-exe" argument to pacpal which can accept multiple package names as arguments.


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

Offline

#11 2009-01-23 19:55:08

der_joachim
Member
From: the Netherlands
Registered: 2008-12-17
Posts: 143
Website

Re: find the executable

If you know the name of the executable, using which is even easier. The command

which opera

gives you the following answer:

/usr/bin/opera

Geek, runner, motorcyclist and professional know-it-all

Offline

Board footer

Powered by FluxBB