sudo -s Got root?

2Dec/080

deborphan and for loops

deborphan is a package in debian that list orphaned libraries in debian. Handy for removing libraries that is no longer needed on a server. The problem with deborphan is that it only lists packages that are orphaned but doesnt remove them, so I do this:

 for i in `deborphan`; do sudo aptitude remove $i; done

I love BASH :D

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.