Goswin von Brederlow <[EMAIL PROTECTED]> writes: > I'm assuming you want this for your normal system and not for a build > chroot. Always build packages for upload in a clean environment one > last time before upload. > > So here we go, way 2 (from memory): > > # Mark all old packages > mv /var/lib/dpkg/status /var/lib/dpkg/status~ > sed 's/Status:/Unofficial: yes\nStatus:/' </var/lib/dpkg/status~ > >/var/lib/dpkg/status > > # reinstall > apt-get clean > dpkg --get-selections |grep -v deinstall | sed -e 's/\t.*//' \ > | xargs -n1 apt-get --reinstall install > > # check output for obsolete or missing packages > # optimaly there should be none > grep-dctrl -P Unofficial yes -s Package,Version /var/lib/dpkg/status
Thanks for the tip. BTW, are there some risks for it to be destructive? ;-P -- Jérôme Marant