On Sun, 1 Jun 2008, Graham Williams wrote:

Thanks for the suggestions Reuben. Comments are below...


Received Sat 26 Apr 2008  6:20am +1000 from Reuben Thomas:
Package: wajig
Version: 2.0.38
Severity: wishlist


I often go through my packages and purge configuration files of removed
packages. It'd be nice to do at least one of two things:

1. Have wajig purge prompt. I often want to know whether a purge is
likely to cause problems, so I run wajig remove to see if any problems
will be caused, then wajig purge to remove the packages. This is to
avoid the situation where packages are purged but still installed
because of dependency problems, as wajig purge doesn't prompt, but just
goes ahead and tries to purge the packages you ask to be purged without
first checking dependencies.

I just use dpkg --purge here. So wajig does not dependency checks. In
fact, doesn't it fail if there are dependencies?

Yes, but the packages are still marked as "purge" afterwards, as with (and presumably because of!) dpkg --purge.

2. Add wajig purge-removed to purge packages that have already been
removed but have configuration files still in the system. This is useful
in its own right e.g. after a system upgrade. I use the following script
for this at the moment:

dpkg-query -W --showformat='${Package}\t${Status}\n' | grep "deinstall ok 
config-files" | cut -f 1 | xargs wajig purge


Would this be the same as dpkg --purge --pending?

No, because such packages are not marked as pending anything.

--
http://rrt.sc3d.org/ | poetry, n.  the art of squeezing blood into a stone



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to