Re: A small script to find unused dependencies which, IMHO, should be included in the tree
Ray Lai <ray <at> cyth.net>
2006-08-04 06:36:22 GMT
I think it would be better to have it written in Perl, since the file
locations or contents may change but the API is less likely to.
-Ray-
On Thu, Aug 03, 2006 at 08:28:02PM -0300, Andr??s wrote:
> I'm not experienced in shell scripting, so you may find lots of
> errors, but I think this is a good start.
>
> This script will find packages which are not used by others. In that
> category falls three types of packages:
>
> 1. Packages that I use and I do know
> 2. Packages that I use and I don't know
> 3. Packages that were installed by others, and aren't used right now,
> because I uninstalled the packages that depended upon it.
>
> The goal is to make the removal of the third type easier.
>
> pkg_check asks for every package it finds, you can delete it, keep it,
> or see if you use it (looking to the package contents). It has two
> modes: interactive and non-interactive, the last just prints to the
> stdout the packages it finds.
>
> Well, I hope this may be useful to the project, the first time I used
> it I deleted tons of packages (without ever needed something after
> that). I think it is a great tool for pkg_* stuff. A t least until
> something smarter comes up.
>
> Here it is:
(Continue reading)