Debian Planet










Welcome to Debian Planet

Search

Apt-get into it.
Main Menu

  • Home

  • Topics

  • Web Links

  • Your Account

  • Submit News

  • Stats

  • Top 10

  • Debian

    These are important Debian sites one should not be without!

  • Official Debian site

  • Package search

  • Mailing list archives

  • Bug reports

  • Debian on CD

  • Unofficial woody CD ISOs

  • Unofficial APT sources

  • Developers' Corner

    Other great Debian news sources:

  • Debian Weekly News

  • Kernel Cousin Debian

    (Debian mailing lists digested)
  • Community Groups

    Need help? You're not alone on this planet.

  • debianHELP

    (User support site)

  • Debian International

  • DebianWorld

    (Français)

  • DebianForum.de

    (Deutsch)

  • EsDebian

    (Español)

  • Debian-BR

    (Português)

  • DebianUsers

    (Korean)

  • MaximumDebian

    (Italiano)

  • IRC

    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.debian.org.

    Many of the Debian Planet staff live there so pop by and say hello.

    Wanna write?

    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you've written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    Sponsorship

    DP is sponsored by uklinux.net and CheepLinux.

    Debian Planet runs on hardware donated by Xinit systems and is using kieser.net's bandwidth.

    Who's Online

    There are currently, 35 guest(s) and 4 member(s) that are online.

    You are Anonymous user. You can register for free by clicking here.

      
    Cleaning up old libraries
    Contributed by zorzella on Friday, November 09 @ 06:11:51 GMT

    Ask Debianplanet
    As a frequent upgrader, I face this problem of having sometimes multiple versions of libraries that get installed with each upgrade, and are never deleted. Every now and then I search for these, and purge them to free up some space. Just yesterday I removed some old libgals: libgal3 libgal4 libgal6 libgal7 libgal8 libgal9 libgal11 libgal12 (I kept the newer ones, 13, 14 and 15, still required).

    My point is: as libraries (and possibly other packages such as emacs*-el) are only meaningful to be installed while there are packages that use them, wouldn't it be a good idea to have them marked as "volatile" (or something), and removed when no installed packages use them any longer?

    DanielS: libgal* has been extremely controversial as upstream tends to bump the soname every few days. Older versions have to be kept around for compatability, but after that IMHO they should be removed.

     
    Related Links

  • More about Ask Debianplanet
  • News by DanielS

    Most read story about Ask Debianplanet:
    Why isn't Debian 'ported' to the higher x86 machines?

    Last news about Ask Debianplanet:

    Printer Friendly Page  Send this Story to a Friend
  • "Cleaning up old libraries" | Login/Create Account | 16 comments
    Threshold


    The comments are owned by the poster. We aren't responsible for their content.

    Re: Cleaning up old libraries (Score: 1, Informative)
    by Anonymous on Friday, November 09 @ 06:39:13 GMT

    You want to use either debfoster or deborphan. These programs would help you remove unneeded packages from you system

    [ Reply ]


    Re: Cleaning up old libraries (Score: 0)
    by Anonymous on Friday, November 09 @ 13:03:04 GMT

    On a similar note, how would you clean up the directorys that apt doesn't delete. For example, when removing a package I noticed this message: dpkg - warning: while removing vflib2, directory `/etc/vfont' not empty so not removed. I could just go delete it, but is there anything important in there? The one file left is a lib, (00vflib2), and I really don't know if it's important. Is there any tool for these types of circumstances?

    [ Reply ]


    Re: Cleaning up old libraries (Score: 0)
    by Anonymous on Friday, November 09 @ 14:52:29 GMT

    There's a package called "cruft", does anyone know if it finds this stuff?

    [ Reply ]


    Re: Cleaning up old libraries (Score: 2, Insighful)
    by caf on Friday, November 09 @ 16:17:11 GMT
    (User Info)

    The only problem with that, is that the phrase:


    as libraries (and possibly other packages such as emacs*-el) are only meaningful to be installed while there are packages that use them,

    ...is not true in the general case. There could be any number of programs compiled from source on the system that depend on those libraries.

    [ Reply ]


    Re: Cleaning up old libraries (Score: 1)
    by GreatDane on Saturday, November 10 @ 22:05:14 GMT
    (User Info)

    Beware with deborphan - it relies on dpkg/apt database of dependencies (which happens to be the correct thing to do).

    But dpkg/apt only records what you have installed using the package management system. As a result, it doesn't take /usr/local into account. So whatever libraries you installed to satisfy some software of your own (/usr/local/whatever) might be considered redundant.

    Apart from that, deborphan rocks 🙂

    [ Reply ]


    Based on: PHP-Nuke

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2000 by Debian Planet

    You can syndicate our news using the file backend.php.