On Saturday 08 October 2005 05:52, Aaron Griffin wrote: > Hmm I'd vote for it in pacman... sounds worthwhile... until then: > > [...]
Thanks Aaron for the script. In order to list only the packages which are not
in the repos (ignoring the version), I've modified your script the following
way.
#! /bin/bash
installed=`pacman -Q | sed -e "s|\(.*[^ ]*\) .*|\1|g" `
repos=`pacman -Sl | sed -e "s|[^ ]* \(.*[^ ]*\) .*|\1|g"`
for pkg in $installed
do
found=`echo $repos | grep $pkg`
if [ "$found" == "" ]; then
echo $pkg
fi
done
# end
Mircea
/IceRAM
--
http://mircea.bardac.net
pgptLNz0zIi0P.pgp
Description: PGP signature
_______________________________________________ arch mailing list [email protected] http://www.archlinux.org/mailman/listinfo/arch
