You are not logged in.
This script is based on the discussion
http://bbs.archlinux.org/viewtopic.php?id=2010
and slightly modified:
#!/bin/bash
# arg[1] = -c | -v
# -c : compact output
# only package name
# -v : verbose output
# name, url, install date, desc
#
# version=2
# date=16:00 10/11/2007
# author=Henry Lee (bsdson.tw)
#
skip="pacNoReq.skip"
echo "date=$(date)"
echo
for pkgName in $(pacman -Qi | cut -d " " -f 1); do
grep -q $pkgName $skip >& /dev/null
if [ 0 -eq $? ]; then
:
else
tmp=$(pacman -Qi $pkgName)
echo "$tmp" | grep -q "^Required By \+: None$"
if [ 0 -eq $? ]; then
if [ -z "$1" ]; then
echo "$tmp" | grep "\(Name\|Descript\)"
elif [ "-c" = "$1" ]; then
echo "$tmp" | grep "Name"
elif [ "-v" = "$1" ]; then
echo "$tmp" | grep "\(Name\|URL\|Install Date\|Description\)"
fi
echo
fi
fi
done
Offline
What do you think about "pacman -Qe"?
Offline
pacman -Qe is considerably different from before after pacman 3, so that script is quite useful.
1000
Offline
pacman -Qe is considerably different from before after pacman 3, so that script is quite useful.
i don't understand this statement, i though pacman2 was/is soon to be incompatible with the current repo structure [1]http://www.archlinux.org/news/345/
Offline
This shouldn't be necessary soon...changes have already been committed in to pacman to add more flexibility without scripts: Feature Request - pacman -Q options
Offline