Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Howto: Simple tuning of Debian systems

Share your HowTo, Documentation, Tips and Tricks. Not for support questions!.
Message
Author
Swynndla
Posts: 58
Joined: 2007-08-15 22:52
Location: New Zealand

#21 Post by Swynndla »

How do you determine if one of those belong to packages that you use?

User avatar
rickh
Posts: 3434
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

#22 Post by rickh »

How do you determine if one of those belong to packages that you use?
One way is "apt-cache rdepends"

That will list all the packages Apt knows about which depend on the one you identify in the command, whether or not you actually have them installed.

It's quite a confusing (to me) area, though. Sometimes you can delete a package even though some other package shows up as a (reverse) dependency, and the dependent application will still work.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97

User avatar
garrincha
Posts: 2335
Joined: 2006-06-02 16:38

#23 Post by garrincha »

rickh wrote:
How do you determine if one of those belong to packages that you use?
One way is "apt-cache rdepends"
It's apt-rdepends, I think that the name may have changed.
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."

User avatar
rickh
Posts: 3434
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

#24 Post by rickh »

It's apt-rdepends, I think that the name may have changed
Either works. You have to install apt-rdepends as a separate program.
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97

User avatar
garrincha
Posts: 2335
Joined: 2006-06-02 16:38

#25 Post by garrincha »

rickh wrote:
It's apt-rdepends, I think that the name may have changed
Either works. You have to install apt-rdepends as a separate program.
Yeah, you're correct -
http://packages.debian.org/unstable/utils/apt-rdepends
Maurice Green on Usain Bolt's 9.58: "The Earth stopped for a second, and he went to Mars."

Bulkley
Posts: 6387
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

#26 Post by Bulkley »

I'm puzzled by localepurge and the locales. I'm showing en and three en-us locales. Do I need them all? If I had my druthers, I'd like everything to use Canadian English, but I know that is unlikely. Can I cut back to a single choice? Or is that risky?

User avatar
craigevil
Posts: 5391
Joined: 2006-09-17 03:17
Location: heaven
Has thanked: 28 times
Been thanked: 39 times

#27 Post by craigevil »

localepurge does have its bugs.

Debian -- localepurge
Please note, that this tool is a hack which is *not* integrated with Debian's package management system and therefore is not for the faint of heart. This program interferes with the Debian package management and does provoke strange, but usually harmless, behaviour of programs related with apt/dpkg like dpkg-repack, debsums, reportbug, etc. Responsibility for its usage and possible breakage of your system therefore lies in the sysadmin's (your) hands.

Please definitely do abstain from reporting any such bugs blaming localepurge if you break your system by using it. If you don't know what you are doing and can't handle any resulting breakage on your own then please simply don't use this package.
Raspberry PI 400 Distro: Raspberry Pi OS Base: Debian Sid Kernel: 5.15.69-v8+ aarch64 DE: MATE Ram 4GB
Debian - "If you can't apt install something, it isn't useful or doesn't exist"
My Giant Sources.list

Swynndla
Posts: 58
Joined: 2007-08-15 22:52
Location: New Zealand

#28 Post by Swynndla »

I've personally been using both deborphan and localepurge for ages without any problems at all.

localepurge seems to save me a surprising amount of space.

I guess the thing to remember is, don't use them unless you know what you are doing?

Another question that I've started to ask myself is "why isn't prelink|deborphan|localepurge|swappiness (and all the other 1000's of tweaks) part of the standard install/kernel?" I bet there are good reasons, but I think it's important to try and find out what those reasons are. It makes sense for me not to install a tweak unless I know what the downsides are.

User avatar
e1even1
Posts: 267
Joined: 2007-03-09 19:18

#29 Post by e1even1 »

Swynndla wrote:I've personally been using both deborphan and localepurge for ages without any problems at all.
i can personally vouch for the localepurge warning. to get xemacs21 as a dependancy on one of my systems (after localepurge), i ended up having to add some russian manpage directory. very very boring.

mechmg93
Posts: 71
Joined: 2005-06-21 12:13
Location: Greece

#30 Post by mechmg93 »

i read the gentoo prelink guide and i have a question??

the right file in debian for putting the line export KDE_IS_PRELINKED="1"

is /etc/profile??

i put it there, rebooted but kdeinit is still running :roll:
Last edited by mechmg93 on 2007-08-22 14:33, edited 1 time in total.

Azriel
Posts: 150
Joined: 2007-07-01 19:03

#31 Post by Azriel »

deborphan also works randomly for me. I've used it with my etch debian, and now with sid, and i get the same problem than said above: it find orphaned libraries which are not orphaned at all.

It would strongly advise to try a

Code: Select all

deborphan -d
before everything in order to see the dependencies of the libs, and then remove carefully one by one the one you think are ok for removal...

[EDIT]: ok, just after posting that, i've started to clean my HDD using deborphan -d, and apt-get remove the libraries without dependencies, and now, the ony thing found by bedorphan is tcltls, which is used by amsn, but is not really a dependencie (since amsn can work without it), so not really a problem. Just deborphan -A tcltls and it's done. Still i strongly advise removing manually each package, even if it is only to know what the hell is going on on your system :).

Lavene
Site admin
Site admin
Posts: 4958
Joined: 2006-01-04 04:26
Location: Oslo, Norway

#32 Post by Lavene »

I have never had deborphan (I use the 'orphaner' frontend) remove libs with dependencies, but if it does it should be reported as a bug. However: if you have anything installed from source you can not trust it anymore of course since those dependencies are not known to apt.

Also remember that Unstable is called unstable for a reason. I can easily imagine deborphan fail on Sid systems...

Tina

User avatar
rickh
Posts: 3434
Joined: 2006-06-29 02:13
Location: Albuquerque, NM USA

#33 Post by rickh »

I have never had a problem on Sid using # deborphan | xargs dpkg --purge

But, obviously, I don't guarantee that you won't. The question that arises in my mind is whether using dpkg --purge is leaving cruft from packages it is deleting.

I haven't gotten brave enough yet to try # deborphan | xargs aptitude remove
Debian-Lenny/Sid 32/64
Desktop: Generic Core 2 Duo, EVGA 680i, Nvidia
Laptop: Generic Intel SIS/AC97

Post Reply