Carsten Hey a écrit : > > As said in my other mail, I also think that this should be done this > way. If you are not interested in writing a wrapper after I implemented > the necessary parts in deborphan I could also implement everything > needed in deborphan and orphaner, which would make this wrapper > needlessly. I would be happy with both options. > Hi, Please find in attachment a first draft of such a wrapper. Is it what you mean?
> Do you agree to publish the parts of your fork of orphaner where you are the > copyright holder under the conditions of the above-mentioned MIT license? > Sure, no problem. I agree. > To show the size of all installed packages you could use debsize[1], > which requires dctrl-tools to be installed. If this does not match the > disk usage on your system using du -s * | sort -n recursively might help > to find old cruft. I think it's not necessary to retrive the exact disk usage on the system. Sorting by "Installed-Size" is enough: it helps administrator to prioritize packets to remove first. Maybe popularit-contest has statistics on the average profile of a system (mean number of installed packages, percentage of <OLD> packets, percentage of non-purged packets, etc.) I have no idea about the state a mean system, but I see what is on my own. On my system, popcon-largest-unused reports 967 <OLD> packets! According to my script popcon-nodependency, 475 of them are orphaned... That's why I think it is interesting to provide some help to prioritize packets to consider first... ;-) orphaner sorts packets by name. It is interesting to quickly find a packet which we know the name. However I wonder if orphan could not provide advanced features (in a sub-menu) such as: search a packet in the list, select all to on, select all to off, reverse the selection, etc. But it will become very complicated! ;-) Regards, Christophe
retirement.sh
Description: application/shellscript
=pod =head1 NAME retirement - frontend to manage used packets =head1 SYNOPSIS B<retirement> [I<OPTIONS>] [I<orphaner options>] =head1 DESCRIPTION B<Retirement> displaying a list of packages you haven't used in a while (three months by default). Packages may be selected for removal with B<apt-get> which is then called to do the work. Technically speaking, B<retirement> is a wrapper arround B<orphaner>, B<deborphan> and B<popularity-contest>. B<popularity-contest> gathers information about packages installed on the system and computes a I<date of last use> for each package. B<deborphan> computes the package dependency graph and filter those that can be safely removed. B<orphaner> is a neat frontend for B<deborphan> displaying a list of suggested packages to remove with dialog. =head1 OPTIONS =over 8 =item B<-h>, B<--help> Print a short help and exit. =item B<-f>, B<--status-file> <I<FILE>> Use FILE as the status file. =item B<-c>, B<--popcon-file> <I<FILE>> Use FILE as popularity-contest report. =back =head2 orphaner and deborphan options B<retirement> accepts most, but not all, options that B<orphaner> accepts. These options are passed to B<orphaner> unchanged. Note that B<orphaner> also passes most options to B<deborphan>. These options are described in B<orphaner> and B<deborphan>'s manpages. =head1 SEE ALSO B<orphaner>(8), B<deborphan>(1), B<popularity-contest>(8), B<apt-get>(8) =cut