Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
Swynndla
Titel: Removing debian orphans  BeitragVerfasst am: 12.09.2006, 02:08 Uhr



Anmeldung: 05. Dez 2005
Beiträge: 414
Wohnort: Auckland, New Zealand
I found this:
http://distrocenter.linux.com/comments. ... ;cid=90212
Zitat:
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
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
kenyee
Titel: RE: Removing debian orphans  BeitragVerfasst am: 12.09.2006, 02:12 Uhr



Anmeldung: 21. Jan 2006
Beiträge: 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...
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 12.09.2006, 02:40 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: 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"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
zulu9
Titel:   BeitragVerfasst am: 12.09.2006, 02:48 Uhr



Anmeldung: 31. Jul 2004
Beiträge: 249

I think you have to be careful with it. On my box it wants to remove libarts1-xine which is needed for video-thumbnails in konqueror.

_________________
http://kanotix.wordpress.com/ inoffizielles Kanotix-Blog
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007