You are not logged in.
Today I saw a post in Arch Linux FR forums that remember me an old script I've done in the past.
This script allow you to find all packages that contain a keyword or all packages with keyword in name and display which one is installed or not. With the help of slubman since I released this script opensource this morning, you could also search only in installed packages or not installed packages. Another option let you exclude repository(ies) from search or search only in some repository(ies) :
[benoitc@marduk pkgsearch]$ pkgsearch.sh
pkgsearch 0.4
usage : /home/benoitc/bin/pkgsearch.sh [-n] <searchstring>
pkgsearch list all packages that contain your
string and display installed packages
Options
-n, --name Search on pkgname only
-m, --nocolor Disable colorized output messages
-i, --installed Display only installed packages
-sr, --skip-repo Exclude repo in search
-ir, --ni-repo Search only in repo
-s, --skip Display only not installed packages
-h, --help Display usage
Here is a little screenshot that show results of "./pkgsearch gnome" :
You could download source here :
Version 0.4 of script under GPL
You could also see my post about it :
http://bchesneau.info/articles/2007/02/ … -in-pacman
enjoy,
Benoît
Last edited by benoitc (2007-02-28 12:38:51)
Offline
New version 0.5. thanks to slubman you could search on multiple words, and search in description is insensitive :
./pksearch.sh gnome gimp
You could download source here :
http://bchesneau.info/files/pkgsearch-0.5.sh.gz
Offline
new version 0.6 . Code optimization :
http://bchesneau.info/files/pkgsearch-0.6.sh.gz
Offline