Re: A little script to remove packages don't needed

2006-07-02 Thread Andrés
I changed a couple of things: a) Now there's a license notice (template from /usr/src/share/misc/license.template). Nothing important, just to be sure. b) All packages which you didn't want to delete are saved to a file, so you will not have to answer n in future runs (to check the full list of

Re: A little script to remove packages don't needed

2006-07-01 Thread Andrés
I've done a rewrite, which reads directories and searches for files, which is MUCH faster :) Greetings #!/bin/ksh function check_for_packages { for package in $(ls /var/db/pkg); { echo Checking if any package depends on $package if ! $(test -a

Re: A little script to remove packages don't needed

2006-06-30 Thread Andrés
It's going to get deleted if you choose that. It's not a fully automated script. Thanks for the feedback :) On 6/30/06, Wade, Daniel [EMAIL PROTECTED] wrote: That all good and well, but what happens when my package that I use has zero depends? It's going to get deleted.