You are not logged in.
Pages: 1
Im having trouble finding packages using pacman. I want to search all the repo's for the package I want, but If I don't get the package name exactly right, i get the message
error: 'openoffice': not found in sync db
These are the two commands that I have tried to use to look for packages
pacman -S packagename
and
pacman -Q packagename
but I can't get anything. What is the proper way to search for packages?
thanks,bj
Offline
pacman -Ss foo
HTH
Mr Green
Offline
from man pacman
SYNC OPTIONS
[... unnecessary text removed ...]
-s, --search <regexp>
This will search each package in the sync databases for names or
descriptions that match regexp.
Offline
I recomend that you read trough the pacman man page.
SYNC OPTIONS ( -S )
-s, --search <regexp>
This will search each package in the sync databases for names or
descriptions that match regexp.
QUERY OPTIONS ( -Q )
-s, --search <regexp>
This will search each locally-installed package for names or descriptions
that match regexp.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Here is what I use: I got it somewhere on these forums, but I like it. put this in your .bashrc:
## Create a colorized pacman
alias pac='pacsearch'
pacsearch () {
echo -e "$(pacman -Ss $@ | sed \
-e 's#core/.*#\\033[1;31m&\\033[0;37m#g' \
-e 's#extra/.*#\\033[0;32m&\\033[0;37m#g' \
-e 's#community/.*#\\033[1;35m&\\033[0;37m#g' \
-e 's#^.*/.* [0-9].*#\\033[0;36m&\\033[0;37m#g' )"
}
Offline
Pages: 1