LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-20-2021, 03:42 PM   #1
gustav3000
LQ Newbie
 
Registered: Dec 2020
Posts: 6

Rep: Reputation: Disabled
Dependency resolution


Hi guys! I want to know what's your preferred way to resolve dependencies. Is there a smarter way than slackpkg install dep_a, slackpkg install dep_b and slackpkg install pkg? How do you deal with manual dependency resolution? I heard about queuefiles and sbotool but I'm interested in how can I resolve dependencies with slackpkg+ in the smarter way than slackpkg install a, slackpkg install b and then finally slackpkg install package.
 
Old 07-20-2021, 04:04 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,378

Rep: Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980Reputation: 5980
For regular Slackware packages, I've gone the lazy route for years and just done a full install. I used to pick and choose things, but HD space is plentiful and I value my time more and more as I get older.

For 3rd-party things like SBo (SlackBuilds.org), I use either slackrepo or sbopkg. slackrepo calcuates dependencies automatically, but I need to run in on a clean Slackware install. sbopkg does not calculate dependencies, but its companion app, sqg does. I run sqg -p $PRGNAM and then use sbopkg to build/install that queue.
 
Old 07-20-2021, 04:05 PM   #3
solarfields
Senior Member
 
Registered: Feb 2006
Location: slackalaxy
Distribution: Slackware, CRUX
Posts: 1,201

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by gustav3000 View Post
how can I resolve dependencies with slackpkg+ in the smarter way than slackpkg install a, slackpkg install b and then finally slackpkg install package.
you can't
 
Old 07-20-2021, 05:34 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,044

Rep: Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622Reputation: 4622
The official answer is "do a full install".
 
Old 07-20-2021, 05:44 PM   #5
hitest
Guru
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Posts: 6,710

Rep: Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951Reputation: 2951
Quote:
Originally Posted by dugan View Post
The official answer is "do a full install".
Yep. A full installation of Slackware works out of the box with all dependencies met.
 
Old 07-21-2021, 01:05 AM   #6
gustav3000
LQ Newbie
 
Registered: Dec 2020
Posts: 6

Original Poster
Rep: Reputation: Disabled
What do you think about slackpkg templates? Is it a good way to organize dependencies?
 
Old 07-21-2021, 01:46 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 6,218

Rep: Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459Reputation: 3459
Quote:
Originally Posted by gustav3000 View Post
What do you think about slackpkg templates? Is it a good way to organize dependencies?
yes, they are.

here I use them extensively but manually solving dependencies is not a precise science, it's more a fix-things-as-you-move-along science, you have to deal with it as is not officially supported (Slackware is offered as a whole).

what I found helpful is to use the work that others have done already in this field, like the one of the Salix people (thanks guys!): they have a PACKAGES.TXT file where all the dependencies for a specific package are listed (there are even alternatives but be aware that you might encounter a few gotchas), and that came handy a few times here in preparing templates.

but if you want to avoid any issues and, most important, you expect people to give you support, just go with a full install like the others already suggested, it's the best choice.

Last edited by ponce; 07-21-2021 at 01:53 AM.
 
5 members found this post helpful.
Old 07-24-2021, 04:47 PM   #8
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 280

Rep: Reputation: 53
Full install + sbotools or sboui for handling dependencies of packages from SBo.
 
Old 07-24-2021, 09:00 PM   #9
Gordie
Member
 
Registered: Aug 2007
Location: Nolalu, Ontario, Canada
Distribution: Slackware64-Current
Posts: 773

Rep: Reputation: 300Reputation: 300Reputation: 300Reputation: 300
Since you are asking about slackpkg specifically and it cannot be used for 3rd party repositories of software then the official answer is do a full installation.
 
Old 07-24-2021, 09:55 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,506
Blog Entries: 28

Rep: Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434Reputation: 5434
I'm not running Slackware right now for reasons I've described elsewhere, but, normally, I would do a full install. When I wanted to add a new package not included in the full install, I would look first at slackbuilds.org and get it from there, installing dependencies as listed at that site before installing the desired package.

Back in the olden days, before SlackBuilds, I would look for the sources of a package I wanted, then compile from sources. When I ran make install and encountered errors, I would look for the dependency mentioned in the first error message (as subsequent errors likely resulted therefrom), resolve it, rinse and repeat.

Once I resolved all the errors, I had a new working application.
 
Old 07-25-2021, 06:13 AM   #11
chrisretusn
Senior Member
 
Registered: Dec 2005
Location: Philippines
Distribution: Slackware64-current
Posts: 1,977

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
I do a full install.

For third party, I rely on the source, SBo and trail and error.

I list the build requirements (in build order), the runtime requirements and the package(s) the SlackBuild is for (in reverse build order) in the SlackBuild header.
 
Old 07-25-2021, 06:59 AM   #12
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 5,570
Blog Entries: 16

Rep: Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307Reputation: 3307
A quick way to pick up library dependencies is to ldd a program. It will print out the libraries it can't find. For non-library dependencies (probably a very small group), run the program in a terminal and see what message it gives when it crashes.
 
1 members found this post helpful.
  


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
Dependency checking this, dependency checking that. Jeebizz General 11 09-29-2009 06:51 PM
ERROR: Dependency resolution failed tronica SUSE / openSUSE 5 06-27-2006 09:52 PM
Good distro with automatic dependency resolution morrolan Linux - General 3 09-27-2004 04:21 AM
how to solve failed dependency when dependency exists dwcramer Linux - Newbie 2 08-24-2004 09:03 PM
rpm dependency resolution problem blahJake Mandriva 2 03-01-2004 08:53 PM

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

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