You are not logged in.
Pages: 1
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
pacman -Ql <your_package> will list all of the files belonging to a package, including the executable.
Offline
yes. pacman.
Edit:Damn..you beat me and you spoonfed him
Last edited by u_no_hu (2009-01-20 18:51:13)
Offline
pacman -Ql package-name
wow, i'm super slow
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
Edit:Damn..you beat me and you spoonfed him
Better be careful when you're around
Offline
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
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'
*steals* Thanks!
Last edited by Ranguvar (2009-01-20 19:15:07)
Offline
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
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
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 Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
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
Pages: 1