Different methods of installing software in slackware
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.
Different methods of installing software in slackware
It is a new-comers question, so it may have some basic errors.
I want to clarify what are different methods of installing software in slackware with advantages & disadvantages of each. From what I could read up, following are the methods:
1. Download source.tar.gz from software's webpage and compile them manually (usually with " .configure && make && make install && make clean ' command).
2. Download and install source with slackbuild from slackbuild.org and compile to tgz and install.
3. Download tgz binaries from slacky and other sites and install.
Option 2 is probably the best. Am I correct? How does one use 'installpkg' command? Can we mouse-right-click on a tar.gz or tgz package and select install? How are the slapt-get and gslapt as package managers?
1. Download source.tar.gz from software's webpage and compile them manually (usually with " .configure && make && make install && make clean ' command).
Try to avoid this one, since it means you will have to keep the build directory if you ever want to uninstall, and even that is no guarantee that it will be possible.
There is also src2pkg, which will try to automatically transform a source tar.gz (or however the sources are distributed) into a Slackware .txz package.
Slackbuilds is my go-to site for software, closely followed by Alien Bob's. For Alien Bob's, I usually download the package and install it with pkgtool.
It's similar to Debian's apt-get package manager. Hence the name: sl(ackware)apt-get.
Code:
apt-get install whatever-package
and
Code:
slapt-get install whatever-package
Never used it on Slackware.
Actually i'm pretty sure, it'd be
Code:
slapt-get --install whatever-package
Generally speaking, i use slackbuilds. If you don't do the full install, you can install packages (without checking dependencies) using slackpkg which will grab the package from the Slackware repo.
Although i'm sure you're aware, i'll mention it anyways.
Pkgtool, Slackwares native package manager does not resolve dependencies and you will have to work them out; but that's generally made very easy in Slack as the people who create Slackware packages keep it in mind and inform the readers of the needed dependencies.
Slackpkg just goes and grabs the packages you tell it to, and then uses Slackpkg to install the package; so it doesn't check dependencies eiher.
Slapt-get does resolve dependencies, but it utilizes third party repos that may 'dirty' your system.
I have never used src2pkg, or sbopkg so can't comment on them.
Is it that pkgtool and slapt-get download and install binary packages and slackbuild and sbopkg are for downloading source files and compiling them locally on the PC so that more optimized packages are produced? Am I correct?
pkgtool does only what you tell it to. the command 'installpkg' is the command to tell pkgtool to install a package. You must create or download the package your self, and tell pkgtool to install it from the directory you have it stored. Like BrianL said, slapt get is very much like apt from Debian; it will fetch a package and its dependencies and install them. Slackbuilds are just a handy way of making a Slackware package from source. According to Chess Griffin, (an enthusiastic Slackware user and creator of the podcast 'Linux Reality') Slackbuilds are the native way to create Slackware packages, and Patrick makes Slackbuilds for all the packages that come with Slackware. Slackbuilds will not install anything, just make the package which you then have to install with pkgtool. I think sbopkg just makes a more automatic way of getting slackbuilds and compiling ect; but like i said previously, i've never used sbopkg.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.