-   Slackware (
-   -   Removing packages (

mariostg 09-25-2012 05:31 PM

Removing packages
I am fine tuning my netbook install by removing/replacing some packages. Example, remove Thunderbird, install Sylpheed, remove rxvt, xterm, install terminator, etc... Now when I install Sylpheed, if I am missing a dependency, I will know soon enough and I can keep track of that. Perfectly fair. But when I remove Thunderbird, well, is there a way to find out if there were any other packages that Thunderbird depended upon that could be removed? Like an orphan package.

Didier Spaier 09-25-2012 06:21 PM

ldd /usr/bin/thunderbird then look for every line of the output from which package it comes. For instance the output of that command being:
Code: =>  (0xffffe000) => /lib/ (0xb7766000) => /lib/ (0xb7762000) => /usr/lib/ (0xb7679000) => /lib/ (0xb7653000) => /usr/lib/ (0xb7636000) => /lib/ (0xb74cf000)
        /lib/ (0xb77ab000)


grep /var/log/{packages,scripts}/*
gives me:

/var/log/scripts/glibc-2.13-i486-6_slack13.37:( cd lib ; rm -rf )
/var/log/scripts/glibc-2.13-i486-6_slack13.37:( cd lib ; ln -sf )
/var/log/scripts/glibc-2.13-i486-6_slack13.37:#( cd usr/lib ; ln -sf ../../lib/ )
/var/log/scripts/glibc-solibs-2.13-i486-6_slack13.37:( cd lib ; rm -rf )
/var/log/scripts/glibc-solibs-2.13-i486-6_slack13.37:( cd lib ; ln -sf )

That's the easy part and can be easily automated. The difficult part is to check that no other package needs theses dependencies.

PS Please note that I did not advise you to remove glibc nor glibc-solibs :)

PS2 Any (not that) new flame war about automatic dependencies' management is strictly forbidden and will be severely punished.

sKaar 09-25-2012 06:25 PM

i did a search in metacrawler for the dependencies, the dependency hell entry on wikipedia mentions it specifically. looks like it's static compiled gre in most cases, or compiled to use a common xulrunner interface, presume it's static, run it from an xterm for a while to catch error messages.

Didier Spaier 09-25-2012 08:59 PM

Let's keep in mind that having a full install of Slackware lessen the burden of managing dependencies.

In particular, only mention dependencies which are not included in Slackware.

So my advise would be:
- if your netbook is really short on disk space, only remove really heavy packages;
- else do not remove anything.

Despite the old saying « Il ne faut pas mettre deux crocodiles mâles dans le même marigot », xterm and terminator should be able to peacefully coexist in your Slackware ;)

mariostg 09-25-2012 09:14 PM

Thanks Didier. Familiarizing myself with Slackware. I am going to study your answer further. Yeah I will not remove glibc. I am an Arch user too, I know about glibc hell... :).

@sKaar. Yep starting an app from the command line can help diagnose/troubleshoot things and minimize trouble.

All times are GMT -5. The time now is 09:42 AM.