LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Removing packages (https://www.linuxquestions.org/questions/slackware-14/removing-packages-4175429009/)

mariostg 09-25-2012 04: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 05: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:

        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7766000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7762000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7679000)
        libm.so.6 => /lib/libm.so.6 (0xb7653000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb7636000)
        libc.so.6 => /lib/libc.so.6 (0xb74cf000)
        /lib/ld-linux.so.2 (0xb77ab000)

Code:

grep libpthread.so.O /var/log/{packages,scripts}/*
gives me:
Code:

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

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 05: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 07:59 PM

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

In particular, slackbuilds.org 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 08: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 06:13 AM.