Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-02-2014, 04:49 PM
|
#1
|
Member
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 499
Rep: 
|
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.
|
|
|
02-02-2014, 05:06 PM
|
#2
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep: 
|
I think it would be too much extra work.
|
|
|
02-02-2014, 05:15 PM
|
#3
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,849
|
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
|
|
|
02-02-2014, 05:23 PM
|
#4
|
LQ 5k Club
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,552
|
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]
|
|
|
02-02-2014, 05:37 PM
|
#5
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,337
Rep: 
|
To do that, one would need that dependencies be recorded in the packages' database (/var/log/packages), but this is not the case.
|
|
|
02-02-2014, 06:11 PM
|
#6
|
Member
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 499
Original Poster
Rep: 
|
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.
|
|
|
02-02-2014, 06:25 PM
|
#7
|
Senior Member
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223
Rep: 
|
|
|
|
02-02-2014, 07:12 PM
|
#8
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,849
|
but sqg must be initialized first or after a new public update by SBo team
|
|
|
02-02-2014, 08:18 PM
|
#9
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Quote:
Originally Posted by rkfb
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.
|
02-02-2014, 08:34 PM
|
#10
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
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.
|
02-02-2014, 09:28 PM
|
#11
|
Senior Member
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860
|
Quote:
Originally Posted by TobiSGD
|
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.
|
|
|
02-02-2014, 11:26 PM
|
#12
|
Member
Registered: May 2004
Distribution: BSD
Posts: 269
Rep: 
|
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.
|
02-03-2014, 09:01 AM
|
#13
|
LQ Guru
Registered: Jun 2003
Location: Virginia
Distribution: Slackware = Main OpSys
Posts: 5,064
|
Quote:
Originally Posted by rkfb
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?
|
|
|
02-03-2014, 10:57 AM
|
#14
|
Member
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 499
Original Poster
Rep: 
|
Quote:
Originally Posted by TobiSGD
|
That works nicely, thanks.
|
|
|
02-03-2014, 11:02 AM
|
#15
|
Member
Registered: Oct 2003
Location: Guildford, England
Distribution: Slackware64 -current running i3
Posts: 499
Original Poster
Rep: 
|
Quote:
Originally Posted by lems
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.
|
|
|
All times are GMT -5. The time now is 11:33 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|