cleaning dependencies

Tyler Littlefield tyler at tysdomain.com
Sat Sep 27 13:45:05 EDT 2008


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


More information about the Speakup mailing list