Re: autoup.sh & considerations on bail-out scripts
On Wed, 18 Feb 1998, Santiago Vila wrote:
> What's wrong with
> (cd /var/lib/dpkg/info; ls *.list) | sed -e '/\.list/s///' ?
yes, that will work. you'll have to check for empty .list files though.
removed packages leave them in /var/lib/dpkg/info
files=$(ls -1 *.list |
grep -v "dpkg-dev" |
grep -- "-dev\|-dbg\|-pic")
for i in $files ; do
[ -s $i ] && INSTALLED="$i $INSTALLED"
INSTALLED=$(echo "$INSTALLED" | sed -e 's/\.list//g')
the grep string may need more work, but that's a good start.
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .