For the archive [was: getting a list of manually installed package]
Since manualy installes Packages are generaly not in any Packages.gz
lists someone can use following construct:
----8<--------------------------------------------------------------
#!/bin/bash
for Packages in /var/lib/apt/lists/*_Packages ; do
grep --invert-match --only-matching --fixed-strings "$(dpkg --get-selections |cut -d ' ' -f1 |sed 's,^,/,g;s,$,_,')" ${Packages} |sed 's,^/,,g;s,_$,,'
done
----8<--------------------------------------------------------------
The "for" loop read all Packages files availlable and compare the
output of get-selections to it.
Please note, that you should do this after an
apt-get update
apt-get upgrade
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: