cleaning dependencies

luke speakup at lists.tacticus.com
Sat Sep 27 20:48:35 EDT 2008


Is this something that "apt-get autoremove" won't handle?

On Sat, 27 Sep 2008, Tyler Littlefield wrote:

> I wrote a quitk script, figured it could probably be used, so here ya go:
> requirements: php5-cli/php4-cli and deborphan
> #!/usr/bin/php
> <?php
> $list=array();
> exec("deborphan",$list);
> if (count($list)==0)
> {
> echo "There are no packages that deborphan can find to be removed.\n";
> return 0;
> }
> $packages=implode(" ",$list);
> echo "The following ".count($list)." packages will be removed: ".$packages.".\n";
> exec("dpkg --purge ".$packages);
> echo "done\n";
> ?>
> 
> Thanks,
> _|_|_|_|_|  _|        _|_|_|_|            
>     _|      _|_|_|    _|          _|_|_|  
>     _|      _|    _|  _|_|_|    _|        
>     _|      _|    _|  _|        _|        
>     _|      _|    _|  _|_|_|_|    _|_|_|  
> Visit TDS for quality software and website production
> http://tysdomain.com
> msn: tyler at tysdomain.com
> aim: st8amnd2005
> skype: st8amnd127
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 



More information about the Speakup mailing list