SlackwareThis 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.
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.
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?
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
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.
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.
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
You can also try using gnashley's src2pkg utility which creates slackware packages from source. Another alternative in addition to frankbell's excellent suggestion.
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 ...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.