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 06-15-2006, 11:42 AM   #1
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
dependency checking in slackware?


speaking about rpm and slackware...

From slackware online book
Quote:
Apparently many people in the Linux community think that a packager manager must by definition include dependency checking. Well, that simply isn't the case, as Slackware most certainly does not. This is not to say that Slackware packages don't have dependencies, but rather that its package manager doesn't check for them. Dependency management is left up to the sysadmin, and that's the way we like it.
Well,how to do the dependency management?
 
Old 06-15-2006, 12:02 PM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
The short answer is by reading. Most pieces of software will list their dependencies and the Slackware philosophy is that you go out and resolve them yourself. The main reason for this is that resolving dependencies can occaisionally bork your sytem and by resolving your own dependencies, the chances of that happening should go down.

That said, there are tools like Swaret, and maybe slapt-get, that will resolve dependencies.
 
Old 06-15-2006, 12:15 PM   #3
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware 15.0
Posts: 1,272

Rep: Reputation: 65
In addition to reading as Hangdog suggested, when you build the packages (./configure), it will usually complain about libraries that are needed and missing. You can then simply work your way through installing any required packages. Even if you download compiled binaries, oftentimes when you try to start that program from the command line, you will see what it is complaining about.
 
Old 06-15-2006, 12:21 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Quote:
Originally Posted by Hangdog42
...That said, there are tools like Swaret, and maybe slapt-get, that will resolve dependencies.
Eek.
That has to be qualified with 'may resolve dependencies'.

The only thing gauranteed is you.
You check.
You make sure.

By all means, use the tools.
But double check. This forum is rife with "I updated foo with (insert magic updatetool name here), and now foobar doesn't work"

Read the changelogs.
 
Old 06-15-2006, 11:20 PM   #5
SpelledJ
Member
 
Registered: Jun 2006
Location: Birmingham, AL
Distribution: Slackware64-13.1, 12.1
Posts: 119

Rep: Reputation: 20
Something I've always liked about Slackware is the large array of libraries that Pat ships. Most of the time the dependencies that those 'other' package managers are looking for are libraries. Just install as much as possible from the /l series and you'll have >90% of what you need for compiling your own packages. On the rare occasion I've been missing a dependency, it's only been one level deep. No multi-level dependency hell of the kind you'll run into with RPMs.
 
Old 06-16-2006, 02:48 AM   #6
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Originally Posted by Hangdog42
...That said, there are tools like Swaret, and maybe slapt-get, that will resolve dependencies.
Quote:
Originally Posted by cwwilson721
Eek.
That has to be qualified with 'may resolve dependencies'.
More important than the issue of resolving dependancies, swaret will identify dependency issues. That the deps aren't always resolved properly is bound to happen. At least many missing deps are pointed out and left to the sysadmin (you) to resolve.

Swaret uses a basic tool for checking dependencies, ldd. You can use it manually yourself, but it will take awhile.

The Dropline guys have a script floating around that makes using ldd to check deps very simple. It doesn't try to resolve deps, it just tells you when you are missing deps.

Note that there are two kinds of deps. One is a dependency on libraries. This usually breaks stuff. The other is more of an "external program" dependency. An example of this is k3b and vcdimager. If you have vcdimager installed, k3d can use it. k3b "depends" on vcdimager for certain functions. Without vcdimager, k3b still works, but it won't make VCDs. No crash, just no added functionality.

ldd can tell you about missing library dependencies, but you may still be left with the "external program" type of deps. For those, though, they usually don't matter unless you need to perform a certain function.

Also do not make the mistake of thinking that swaret is only an updating tool. You can use it to also help resolve deps on a less than full install.
 
Old 09-01-2006, 06:53 PM   #7
Lanix1
LQ Newbie
 
Registered: Dec 2005
Location: Chicagoish
Distribution: Slack
Posts: 19

Rep: Reputation: 0
Man that was helpful, I have been wondering what tools to use for checking dependencies, and that script makes life a lot easier. Now I have it on my usb memory stick, and boot floppy. Thanks
 
Old 09-02-2006, 04:57 PM   #8
syvy
Member
 
Registered: Sep 2005
Location: Germany
Distribution: slackware64
Posts: 113

Rep: Reputation: 17
Another nice tool is slackdeptrack.
You can find it here: http://linux.bydg.org/~yogin/
 
Old 09-02-2006, 05:41 PM   #9
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
If you install a binary package and you try to run it from the CLI you'll get an error message complaining of a missing dep. Find it, install it, and try again.
 
  


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
Netpkg adds dependency checking jpgu Linux - News 0 12-24-2005 06:53 AM
i need a command for checking the dependency of a package Uday123 SUSE / openSUSE 7 12-19-2005 12:03 AM
RPM in Slackware, dependency checks trigggl Linux - Software 6 01-20-2005 10:49 AM
any good resource about dependency in slackware? eeyoree Slackware 3 08-08-2004 07:54 AM
Mandrake 9.1 does not pass checking module dependency during boot after installation Middelburg Linux - Newbie 1 06-20-2003 10:56 AM

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

All times are GMT -5. The time now is 09:17 PM.

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