LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-10-2016, 04:07 PM   #1
babbab
Member
 
Registered: Mar 2010
Distribution: slackware64 current
Posts: 104

Rep: Reputation: 4
slackware package dependency


I've been using slackware for while.
So, pkgtool in slackware doesn't do dependency check.
Nor there is document available about slackware package dependency.

How do you check dependency of packages in slackware other than using ldd or you can go to the package's website, if available and if the package site provides dependency doc

These two are a way to check dependency I can think of.

Is there other ways to check slackware package dependency?
or is there dependency doc available I don't know about?
 
Old 12-10-2016, 04:41 PM   #2
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Slackbuilds from slackbuilds.org, and alienbob's precompiled txzballs all install or list the required dependencies by default. The base Slackware system comes with a huge array of development tools anyway, and additional libraries beyond that are rarely needed.

However, if you attempt to install, say Gnome stuff, you're pretty much on your own if someone hasn't packaged the whole thing.

Slackware will not install a whole entire desktop environment just because you want a 400k package that has a remote dependency somewhere.

Last edited by Fat_Elvis; 12-10-2016 at 06:05 PM. Reason: Eh... not sure if slackbuild scripts auto-install the dependencies
 
Old 12-10-2016, 05:13 PM   #3
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
There is no official documentation for dependencies within Slackware. The thought is, if you do a full install, all dependencies will be met. If you decide to not do a full install, it is on you to figure out what packages you need. That being said, you can generally look at either ivandi's or Salix's dependency list to get a rough idea of what is required. It isn't not documented whether these are build or runtime dependencies. However, if you go the route of installing something other than a full install, we request you mention that on any threads you create, because we've spent a lot of time diagnosing issues that could've been easily solved if we knew they weren't running a full install.

As for 3rd-party software, most will list any required and optional dependencies. Some tools allow you to build and/or install all required 3rd-party dependencies.
 
Old 12-10-2016, 05:50 PM   #4
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
slapt-get and sbotools come to mind
 
Old 12-10-2016, 08:16 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,317
Blog Entries: 28

Rep: Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140Reputation: 6140
The old way is this.

Compile the package.

Run make and make install. If there are dependencies, the make install will error out. Find the first error identifying a missing dependency.

Install the missing dependency. If that errors out, find its missing dependency (see above).

Rinse and repeat until all dependencies are met.

It can be awfully annoying, but it's a great way to learn about how Linux works.
 
2 members found this post helpful.
Old 12-10-2016, 08:24 PM   #6
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by frankbell View Post
It can be awfully annoying, but it's a great way to learn about how Linux works.
And has a tendency of making a person question what the developers were thinking, linking against anything and everything, including the particular brand of kitchen sink in their own kitchen.

Then you might find another piece of software that Just Works out of the box, and turns out to be much faster, more secure, stable, and various other good things.
 
Old 12-11-2016, 01:58 AM   #7
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by babbab View Post

How do you check dependency of packages in slackware other than using ldd or you can go to the package's website, if available and if the package site provides dependency doc
to explore binary dependencies, sbbdep
https://bitbucket.org/a4z/sbbdep/

note that exploring binary dependencies is not dependency management

slackbuilds, the info files, the queue generator and/or sbotools do some kind of dependency management.
 
1 members found this post helpful.
Old 12-11-2016, 02:49 AM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
Quote:
Originally Posted by babbab View Post
or is there dependency doc available I don't know about?
I suggest you also to have a look at the evergreen ruario's article on the matter.
 
Old 12-11-2016, 03:09 AM   #9
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Quote:
Originally Posted by frankbell View Post
The old way is this.

Compile the package.

Run make and make install. If there are dependencies, the make install will error out. Find the first error identifying a missing dependency.

Install the missing dependency. If that errors out, find its missing dependency (see above).

Rinse and repeat until all dependencies are met.

It can be awfully annoying, but it's a great way to learn about how Linux works.
Reminiscent of building MPlayer in the age of 2.2.x/2.4.x kernels of the early 2000's
 
Old 12-11-2016, 12:05 PM   #10
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
You can also try using gnashley's src2pkg utility which creates slackware packages from source. Another alternative in addition to frankbell's excellent suggestion.

http://distro.ibiblio.org/amigolinux/download/src2pkg/
 
Old 12-11-2016, 01:28 PM   #11
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Or you can go Old School.
Code:
./configure
then learn how to read the errors to look for what dependencies you need to install first, then just keep plugging away at it. Installing them one at a time, until you work it out. Just like using SlackBuilds, only it is from source, so your package manager will not know it is installed.

so, you could after you get it all figured out, just write a SlackBuild script, then put it to use then if all goes well submit it to the Slackware SLackBuilds ...
 
Old 12-11-2016, 01:30 PM   #12
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
The old way is this.

Compile the package.

Run make and make install. If there are dependencies, the make install will error out. Find the first error identifying a missing dependency.

Install the missing dependency. If that errors out, find its missing dependency (see above).

Rinse and repeat until all dependencies are met.

It can be awfully annoying, but it's a great way to learn about how Linux works.
If you are going to take this perfectly valid approach you should keep very good notes on what you have installed because packages installed this way will not be easily removed or upgraded with pkgtool. Using a tool like src2pkg as referred to above will allow you to manage the packages with the standard tools.
 
Old 12-11-2016, 01:38 PM   #13
Fat_Elvis
Member
 
Registered: Oct 2016
Distribution: FreeDOS 1.2
Posts: 309

Rep: Reputation: 92
Quote:
Originally Posted by BCarey View Post
If you are going to take this perfectly valid approach you should keep very good notes on what you have installed because packages installed this way will not be easily removed or upgraded with pkgtool. Using a tool like src2pkg as referred to above will allow you to manage the packages with the standard tools.
Might do something like:

Code:
sudo make install &> install_log.txt
And get fancy with filtering out file names from that if you like.

Some cmake scripts create an install manifest by default, and some make scripts allow a "make uninstall" as well.

In general though, I'd try either a local install, or just run the thing without installing at all at first, just to avoid that headache later on.
 
Old 12-11-2016, 01:43 PM   #14
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
NOTE: * managed *
 
Old 12-11-2016, 02:37 PM   #15
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Let's answer the question asked.

Quote:
Originally Posted by babbab View Post
How do you check dependency of packages in slackware other than using ldd or you can go to the package's website, if available and if the package site provides dependency doc

These two are a way to check dependency I can think of.

Is there other ways to check slackware package dependency?
or is there dependency doc available I don't know about?
You can use depfinder for that, after having carefully read the README. You will find packages for depfinder in the Salix repositories usable in Slackware 14.2 for 86-64 and i486 architectures.

Alternatively, as pointed out by bassmadrigal, you will find dependency lists (mostly written using depfinder) in this Salix repository for Slackware 14.2.

If you install a full Slackware distribution (which is recommended) you do not need any dependency information for the included packages as Patrick Volkerding takes care that you do not miss anything.

This is different for Slackware derivatives like Salix, because they do not ship all Slackware packages, thus they need to know which Slackware packages they should include in each Salix edition to make sure all software they provide run.

This is the reason why they mirror Slackware and add the .deps files.
 
2 members found this post helpful.
  


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
SBo Protocol for using slackware-current package as slackbuild dependency? michaelslack Slackware 7 03-07-2013 07:35 PM
Looking for slackware with dependency resolution in package management rng Slackware 26 03-12-2012 05:48 AM
slackware package management dependency support rng Linux - General 3 01-09-2012 04:56 AM
Installing Package with dependency yunus.raza Linux - Software 1 12-03-2004 06:37 AM

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

All times are GMT -5. The time now is 12:50 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