| Author |
Message |
|
|
Post subject: Removing debian orphans
Posted: Sep 12, 2006 - 02:08 AM
|
|

Joined: Dec 05, 2005
Posts: 414
Location: Auckland, New Zealand
|
|
I found this:
http://distrocenter.linux.com/comments. ... ;cid=90212
Quote:
If you try a lot of software, installing and uninstalling packages, then after a while you'll have a lot of useless leftover dependencies installed too. Run deborphan to see a list of these. You can apt-get --purge remove `deborphan`. Now do it again, to see more packages that now turn out also to be useless. Do this until there aren't any more, and you've removed a lot of cruft from your system.
It makes sense to me, and if I install an app via apt, it'll also often install other dependencies, but when I remove the app via apt, it only removes the app and not the dependencies.
The command seems to work great. I had to run it 3 or 4 times to clear out everything.
I don't like the thought of my pc being bogged down with dependencies that it doesn't need. I guess you'd have to be carefull though, as it removes things that it thinks isn't used anymore, but this may not be correct, like if you've installed stuff that's not from the debian repo's. Running "deborphan" by itself will list the stuff it thinks can be removed.
For those of you who use h2's du-fixes-h2.sh, that script also gives you the option of removing unused dependencies for you, and it does it in the same way. |
_________________ Linux is evolution, not intelligent design - Linus Torvalds
|
| |
|
|
|
 |
|
|
Post subject: RE: Removing debian orphans
Posted: Sep 12, 2006 - 02:12 AM
|
|
Joined: Jan 21, 2006
Posts: 185
|
|
| Just be sure you don't need everything it says isn't used. Typically, it's stuff that doesn't come in a debian package. E.g., Lotus Domino depends on the ia32-libs on a 64-bit system because it's a 32-bit application and deborphan wants to remove the 32-bit compatibility libs... |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 12, 2006 - 02:40 AM
|
|
Team Member


Joined: Dec 17, 2003
Posts: 1109
Location: Ganymede
|
|
It certainly is possible to remove something that you need with deborphan but I personally have only seen this happen once. YMMV
To play it safe you might do something like:
Code:
deborphan|tee orphans-9.6.06.txt
This way you at least have a dated record of what you removed in the event of a breakage.
There is even a text mode UI for deborphan:
Code:
# orphaner
If you're an apt/Debian/Linux n00b you might want to avoid using deborphan. |
_________________ Ubuntu - An ancient African word for "Can't install Debian"
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Sep 12, 2006 - 02:48 AM
|
|

Joined: Jul 31, 2004
Posts: 249
|
|
|
|
|
 |
|
|
|
|