LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-02-2014, 04:49 PM   #1
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: slackware
Posts: 303

Rep: Reputation: 41
slackpkg option for dependencies


I was just thinking about dependency resolution whilst I was browsing around sbopkg and I thought if I can type

$ slackpkg info <packagename>

for a little read up, it would be quite handy to type

$ slackpkg requires <packagename>

to get a list of dependencies.

I realise of course there are various ways to get this information anyway but this would be a nice addition.
 
Old 02-02-2014, 05:06 PM   #2
moisespedro
Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 965

Rep: Reputation: 112Reputation: 112
I think it would be too much extra work.
 
Old 02-02-2014, 05:15 PM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,583

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
Slackware assumes that you do a full installation, so no need for dependency checking as all the hard dep has been installed in your system
 
Old 02-02-2014, 05:23 PM   #4
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,475

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
The slackpkg tool is for administering the official portion of your Slackware install. All dependencies are met within the recommended full install. I do not see a use case.

[edit]Too slow![/edit]
 
Old 02-02-2014, 05:37 PM   #5
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,413

Rep: Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123Reputation: 1123
To do that, one would need that dependencies be recorded in the packages' database (/var/log/packages), but this is not the case.
 
Old 02-02-2014, 06:11 PM   #6
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: slackware
Posts: 303

Original Poster
Rep: Reputation: 41
I forgot about the old slackware 'if you don't do a full install you're on your own' and I have a fairly basic install here. I'm sure a lot of people these days though skip kde* on install and just run with xfce or if you were maybe resurrecting an old pc or laptop and wanted to run with just fluxbox or something. Maybe it would help but I'm not a coder so maybe it is too difficult or too much work which is fair enough and I understand that.

Not sure how sbopkg do it, obviously it's a lot different to slackpkg and running from different packages in a different repository, but if I do:

sbopkg -s <packagename>

it's all there.
 
Old 02-02-2014, 06:25 PM   #7
moisespedro
Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 965

Rep: Reputation: 112Reputation: 112
Sbopkg does it by using sqg
http://slackblogs.blogspot.com/2014/...es-easily.html
 
Old 02-02-2014, 07:12 PM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 2,583

Rep: Reputation: 431Reputation: 431Reputation: 431Reputation: 431Reputation: 431
but sqg must be initialized first or after a new public update by SBo team
 
Old 02-02-2014, 08:18 PM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,544

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by rkfb View Post
I forgot about the old slackware 'if you don't do a full install you're on your own' and I have a fairly basic install here. I'm sure a lot of people these days though skip kde* on install and just run with xfce or if you were maybe resurrecting an old pc or laptop and wanted to run with just fluxbox or something. Maybe it would help but I'm not a coder so maybe it is too difficult or too much work which is fair enough and I understand that.

Not sure how sbopkg do it, obviously it's a lot different to slackpkg and running from different packages in a different repository, but if I do:

sbopkg -s <packagename>

it's all there.
There's metadata associated with each slackbuild that has that information in it. It's the package_name.info file, which contains something like (taking 14.1's libvirt SlackBuild as an example):
Code:
PRGNAM="libvirt-python"
VERSION="1.2.1"
HOMEPAGE="http://libvirt.org"
DOWNLOAD="http://libvirt.org/sources/python/libvirt-python-1.2.1.tar.gz"
MD5SUM="e1effd6007b2ebd5d024c6c3838456fb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libvirt"
MAINTAINER="Robby Workman"
EMAIL="rworkman@slackbuilds.org"
If you really want that functionality, then you should consider using slapt-get as well as one of the slapt-get repositories where someone's done that analysis for a standard slackware distribution. Like this one (look at the contents of PACKAGES.TXT at the link).
 
1 members found this post helpful.
Old 02-02-2014, 08:34 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,601
Blog Entries: 2

Rep: Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060Reputation: 4060
Alternative: Just use a tool specifically written to show dependencies for Slackware packages: https://bitbucket.org/a4z/sbbdep/wiki/Home
 
4 members found this post helpful.
Old 02-02-2014, 09:28 PM   #11
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,544

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by TobiSGD View Post
Alternative: Just use a tool specifically written to show dependencies for Slackware packages: https://bitbucket.org/a4z/sbbdep/wiki/Home
That will work in a majority of the cases (probably a vast majority of them).

If you need something that isn't binary from another package, you're pretty much stuck with someone documenting that fact in some location that a program can read and understand. Data files for games and python/perl/scheme/ruby/whatever scripts come to mind.
 
Old 02-02-2014, 11:26 PM   #12
lems
Member
 
Registered: May 2004
Distribution: Slackware{,64,ARM} / NetBSD
Posts: 146

Rep: Reputation: 48
According to Matteo Rossini (zerouno, on Alien BOB's blog), the following works with some third party repositories using slackpkg+:

Quote:
slackpkg+, as slackpkg, does not have the dependency support, but some repository (as slacky and other) contains that information in metadata and slackpkg store that information in its database. So by typing “slackpkg info pkgname” you can see what package you must also install.
Also, there is slackyd, though I haven't tested it.
 
2 members found this post helpful.
Old 02-03-2014, 09:01 AM   #13
enorbet
Member
 
Registered: Jun 2003
Location: Virginia
Distribution: Slackware 14 is Main OpSys on Main PC, 2ndary are OpenSuSe 13 and SolydK
Posts: 710

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by rkfb View Post
I forgot about the old slackware 'if you don't do a full install you're on your own' and I have a fairly basic install here. I'm sure a lot of people these days though skip kde* on install and just run with xfce or if you were maybe resurrecting an old pc or laptop and wanted to run with just fluxbox or something. <snip>
Why not follow the recommended procedure? Why not install KDE even if you plan to use Xfce as your WM? What do you hope to gain by a basic install except hard drive space?
 
Old 02-03-2014, 10:57 AM   #14
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: slackware
Posts: 303

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by TobiSGD View Post
Alternative: Just use a tool specifically written to show dependencies for Slackware packages: https://bitbucket.org/a4z/sbbdep/wiki/Home
That works nicely, thanks.
 
Old 02-03-2014, 11:02 AM   #15
rkfb
Member
 
Registered: Oct 2003
Location: Guildford, England
Distribution: slackware
Posts: 303

Original Poster
Rep: Reputation: 41
Quote:
Originally Posted by lems View Post
According to Matteo Rossini (zerouno, on Alien BOB's blog), the following works with some third party repositories using slackpkg+:



Also, there is slackyd, though I haven't tested it.
I'll certainly look in to slackpkg+, looks interesting, thanks.

slackyd was almost there but the last lines of the info were:

> Package conflict with: not available.
> Packages suggest: not available.
> Packages required: not available.

for whichever package I queried.
 
  


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
[SOLVED] Is there any builtin option to show title and searched option? mddesai Linux - Newbie 6 07-17-2013 07:29 AM
[SOLVED] typos in latest /etc/slackpkg/mirrors(.new) [slackpkg-2.82.0-noarch-8.tgz] wailingwailer Slackware 4 09-22-2012 04:04 AM
No option for slackware 12 in slackpkg.conf ??? nutronix Slackware 2 07-12-2007 04:22 PM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM
I recieve a failed dependencies error, but I have all required dependencies Laptop2250 Linux - Software 15 02-03-2004 07:58 PM


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