LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-25-2012, 04:31 PM   #1
mariostg
Member
 
Registered: Apr 2011
Location: Gatineau, Quebec
Distribution: OpenBSD
Posts: 80

Rep: Reputation: 5
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.
 
Old 09-25-2012, 05:21 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,181

Rep: Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018
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.

Last edited by Didier Spaier; 09-25-2012 at 05:34 PM.
 
Old 09-25-2012, 05:25 PM   #3
sKaar
Member
 
Registered: Jun 2006
Location: dartmouth, nova scotia
Distribution: slackware 12.1
Posts: 74

Rep: Reputation: 2
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.
 
Old 09-25-2012, 07:59 PM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,181

Rep: Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018Reputation: 1018
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
 
Old 09-25-2012, 08:14 PM   #5
mariostg
Member
 
Registered: Apr 2011
Location: Gatineau, Quebec
Distribution: OpenBSD
Posts: 80

Original Poster
Rep: Reputation: 5
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Packages mrtedweb Linux - Newbie 1 08-01-2009 08:07 AM
removing packages lukman Linux - Newbie 2 06-11-2006 08:02 PM
removing certain packages Smokey Red Hat 1 10-02-2004 07:55 PM
removing packages robson8112 Linux - General 3 01-21-2004 03:34 PM
removing packages..??? mhd_Ahmed Linux - Newbie 4 08-22-2003 12:46 PM


All times are GMT -5. The time now is 08:16 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration