LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 02-09-2010, 11:43 PM   #1
KMBS
Member
 
Registered: Oct 2009
Location: Germany
Distribution: Slackware
Posts: 32

Rep: Reputation: 16
Track down unused dependencies


Well, the title says it all.
I have no problem with resolving dependencies on my own, but when I uninstall a programm, how could I keep track of the dependencies, thus remove them?

Is there a possibility to store this information in the /var/log/packages files, or better yet, is it possible to include the dependencies in the the .tgz's, so a 'removepkg' would get rid of them as well?
 
Old 02-10-2010, 12:34 AM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
No, you have to track them down on your own as well.
 
Old 02-10-2010, 02:03 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
In Debian the program is called deborphan, this is not possible with Slackware because there is no dependency database. SalixOS which is compatible with Slackware lists all of the dependencies for both their own and Slackware packages.

Packaging the dependencies with the package is not a good idea, as a dependency may be required for multiple packages, and if you removed one of these mega bundles you would break several others, there is also the risk of dependency hell where different versions of an essential program are required by different programs. They try to replace each other and therefor at least one program can never work, or worse your entire system dies.

samac
 
Old 02-10-2010, 04:39 PM   #4
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
There was and probably still is (see slacky.eu) a utilitiy called slackdeptrack that displays all dependencies of all ELF executables and libraries by walking through your filesystem so it is, or at least was, possible to figure out packages no other package depends on. It was several years ago I played with this tool so I cann't guarantee or even recommend it because I don't know its current state. I simply did not need such feature ever.

Last edited by dunric; 02-10-2010 at 04:41 PM.
 
Old 02-11-2010, 06:50 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
slackdeptracj still works fine. But, it shows you the packages needed by each package -not the 'reverse' depends( list of all packages which depend on a package)
 
Old 02-11-2010, 08:15 AM   #6
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Are we referring to packages that come with Slackware or others that were installed (and maybe also built) by the sysadmin.

For the former, I would ask Pat :-), for the latter it is up to the sysadmin to keep record.
 
  


Reply



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
how to know the used/unused area in a CD/DVD Joydeep Bakshi Programming 1 09-25-2007 01:10 PM
Unused Modules pete1234 Linux - General 3 07-16-2007 12:42 AM
amavisd unused ?? Wynand1 SUSE / openSUSE 0 09-22-2005 07:50 AM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM
free up unused memory im1crazyassmofo Linux - Hardware 1 01-20-2004 06:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:59 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration