Hi,

Okay, so after a few  months of running fink, downloading source
files, switching to CVS selfupdates, and updating packages, my
/sw/ directory is full of leftovers.  I've been keeping an eye on
the /sw/src/ directory, but the .deb files are multiplying day by
day.  A week or two ago, someone else asked a similar question
about removing those .deb files, too.

So I hacked a little python program to find the .deb files and
compare them to dpkg's status file, /sw/var/lib/dpkg/status, and
tell me which .debs are still in use.  It's attached to this
email (rather than included inline) given python's strict
whitespace rules and most MUAs' disrespect therefor.

My question, then, is:  Is this safe?  Once I've upgraded a
package, do I need the "old" .deb files?  If I remove the .deb in
the /sw/fink/dists/.../ directory and the link to it from the
/sw/fink/debs/ directory, is that it?

It "works" for my installation, under the assumptions that fink's
base is /sw/, dpkg's "status" file is /sw/var/lib/dpkg/status, and
that the installation is reasonably sane.  If there's enough
interest, I can make it more robust.  Then again, perhaps that
effort would be better directed towards a more effective and
thorough "fink remove" command.

Regards,
Dan

Attachment: fink-cleanup.py
Description: Binary data



--
This email impairs your ability to operate heavy machinery.
<mailto:[EMAIL PROTECTED]>

Reply via email to