Florian Weimer <[EMAIL PROTECTED]> writes: > * Marc Brockschmidt: >> It would be quite useful if you could provide an option allowing to only >> display packages which would be removed in the current configuration >> without actually doing it. Even more useful would be to do this in a >> way not requiring write access to the keepers file. >> >> [Idea behind this: nagios check to see if build chroots are still clean, > In this case, --show-orphans should do the trick. It lists not just the > packages debfoster would remove, but those which aren't on the keepers > list (or are kept indirectly). But this seems to a better fit for your > requirements anyway.
Hmmm, I'm note sure if this does actually work as expected: anakreon:/home/buildd/chroots# sudo debfoster -o "KeeperFile=/org/buildd/chroots/etch-bpo/var/lib/debfoster/keepers" -o "DpkgStatus=/org/buildd/chroots/etch-bpo/var/lib/dpkg/status" -o "DpkgAvailable=/org/buildd/chroots/etch-bpo/var/lib/dpkg/available" -v --show-orphans The following packages have been orphaned: libgtk2-perl anakreon:/home/buildd/chroots# debfoster -o "RemoveCmd=echo" -o "KeeperFile=/org/buildd/chroots/etch-bpo/var/lib/debfoster/keepers" -o "DpkgStatus=/org/buildd/chroots/etch-bpo/var/lib/dpkg/status" -o "DpkgAvailable=/org/buildd/chroots/etch-bpo/var/lib/dpkg/available" -v -f Removing package: defoma Removing package: file Removing package: fontconfig Removing package: fontconfig-config Removing package: libatk1.0-0 Removing package: libcairo-perl Removing package: libcairo2 Removing package: libexpat1 Removing package: libfontconfig1 Removing package: libfreetype6 Removing package: libglib-perl Removing package: libglib2.0-0 Removing package: libgtk2-perl Removing package: libgtk2.0-0 Removing package: libgtk2.0-common Removing package: libjpeg62 Removing package: libmagic1 Removing package: libpango1.0-0 Removing package: libpango1.0-common Removing package: libpng12-0 Removing package: libtiff4 Removing package: libx11-6 Removing package: libx11-data Removing package: libxau6 Removing package: libxcursor1 Removing package: libxdmcp6 Removing package: libxext6 Removing package: libxfixes3 Removing package: libxft2 Removing package: libxi6 Removing package: libxinerama1 Removing package: libxrandr2 Removing package: libxrender1 Removing package: ttf-dejavu Removing package: ucf Removing package: x11-common defoma file fontconfig fontconfig-config libatk1.0-0 libcairo-perl libcairo2 libexpat1 libfontconfig1 libfreetype6 libglib-perl libglib2.0-0 libgtk2-perl libgtk2.0-0 libgtk2.0-common libjpeg62 libmagic1 libpango1.0-0 libpango1.0-common libpng12-0 libtiff4 libx11-6 libx11-data libxau6 libxcursor1 libxdmcp6 libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxrandr2 libxrender1 ttf-dejavu ucf x11-common anakreon:/home/buildd/chroots# What is --show-orphans actually showing? Why are the other packages not included? Marc -- Fachbegriffe der Informatik - Einfach erklärt 127: Unterstützt UNICODE Der Buchstabe A' kann als \u0041' eingegeben werden.
pgp6cbC5SwOFJ.pgp
Description: PGP signature