I tried out the script, although I wound up having to resave it to remove the line breaks. It worked fine for me, too.
One time something like this could be a problem is if you have .debs for packages that aren't named the same, but do the same job, like autoconf and autoconf25, or libtool and libtool14--some packages may require an older version of autoconf or libtool to build correctly. However, this being said, if one keeps the tarballs around the .deb can always be reconstituted. Although it _is_ a major pain to have to build emacs! :-) On 3/4/02 18:13, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > 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 > > > > -- > This email impairs your ability to operate heavy machinery. > <mailto:[EMAIL PROTECTED]> > -- Alexander K. Hansen Associate Research Scientist, Columbia University, LDX Collaboration MIT Plasma Science and Fusion Center, 175 Albany Street, NW17-219 Cambridge, MA 02139-4213 Phone: 617-252-1818 Fax: 208-988-4057 _______________________________________________ Fink-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-users