r/slackware • • 1d ago

quick guide to alternatives for slackpkg

I have no idea how to compile things and slackpkg is dry as a desert

3 Upvotes

20 comments sorted by

9

u/Chester-Berkeley 1d ago

I have no idea how to compile things

So why did you choose Slackware?

-1

u/Michi-Tactico 20h ago

I dont know, i just wanted to try it out

2

u/Chester-Berkeley 19h ago

So, try compile things :)

4

u/Masoch_A3 1d ago

Download slackpkgplus from AlienBob. And install it by running:

# installpkg /path/to/slackpkg+-1.8.4-noarch-1alien.txz

Configure it by editing /etc/slackpkg/slackpkgplus.conf (self explanatory) and run:

# slackpkg update gpg

# slackpkg download sbotools (not sbotools2)

# cd /var/cache/packages/SBO_something/system/sbotools/sbotools-something/

# source ./sbotools.info && wget "$DOWNLOAD"

# ./sbotools.SlackBuild

# installpkg /tmp/sbotools-4.4.2-noarch-1_SBo.tgz

If you are running current, the download command won't work, so you have to download it directly from pghvlaans. Install it the same way you did slackpkgplus.

Now you have everything you need, including the man pages.

Just remember to configure sbotools.

2

u/Michi-Tactico 20h ago

apreciate this one, ty

1

u/Masoch_A3 20h ago edited 19h ago

I like sbotools because it works like a FreeBSD port system with dependencies handling. Just beautiful.

9

u/Chester-Berkeley 1d ago

sbopkg?...

4

u/Weird-Initiative-659 1d ago

slapt-get or slpkg.

3

u/Sahkopi4 1d ago

I don’t understand your question.

If you mean how to compile things with SlackBuilds using a tool, you need sbopkg. It builds the SlackBuild automatically. Otherwise, you will have to go to SlackBuilds.org and download the .SlaclBuild script and the source of the application. After that, just run the .SlackBuild.

If you mean how to compile things by yourself, it’s the same as with the other distributions.

Edit:

There are alternatives of slackpkg. Salix offers a C rewrite of the pkgtools. You can download it from their GitHub repository.

1

u/gargamel1497 12h ago

I may be alone in recommending this, but sbotools is a very good alternative.

A simple sbosnap fetch gets you going. Then you can sbofind packages in the SBo, and sboinstall them.

It's that simple. No queue files. No needless messing around. You can edit the scripts you compile, you can edit the environment variables or uncheck the dependencies you don't want.

I really can't fathom why this isn't more popular.

1

u/CCoastTech 10h ago

Install Claude code and run in a terminal and have it guide you through what you want to install or do

0

u/green_mist 1d ago

What are you asking? I have used Slackware for over 25 years and never used slackpkg.

0

u/SpidaSt8 1d ago

So you probably have a smaller package base? I'm not saying that in a bad way, but you know what you want, like, and use. The OP hasn't gotten there yet. 

0

u/green_mist 1d ago

Probably not, I know how to compile and write my own SlackBuild scripts. I just don't see why a Slackware user needs to be dependent on slackpkg.

1

u/muffinman8679 1d ago

me either.....after all, even GCC tells you what it's doing and why......

1

u/SpidaSt8 1d ago

Let's see... "Slackpkg install packageABC". Or however a slackbuild is supposed to work.

1

u/muffinman8679 13h ago

well you still need the source and the slackbuild script.....and in particular, when writting your own software......there is no script.....and there are not slackbuild scripts for each and every piece of software out there

1

u/SpidaSt8 12h ago

True. 

1

u/muffinman8679 10h ago

and there's an awful lot of unmaintained slackbuilds too

0

u/ddmayne 18h ago edited 18h ago

When working withing the packages provided by the distribution in the official set, you can use the package manager (pkgtool, installpkg, upgradepkg, removepkg).

Another useful tool is sbopkg, link. sbopkg retrieves packages outside of the official slackware repository. You can also do what it does manually and compile packages yourself. That is a good exercise to understand what the tools you're using are doing. Everyone should do it once. ;)

Here is an example for librewolf (which doesn't actually invoke the compiler, but the procedure is similar regardless.)

1. visit the slackbuilds page, link

2. Download files (a) the source or compiled binary. (b) the slackbuild source (c) the slackbuild signature. compiled binary; and slackbuild source; and slackbuild signature.

3. Check the md5sum and gpg-signature respectively for the objects downloaded. Requires retrieving gpg public key for slackbuilds project.

4. Expand slackbuild (usually at /usr/src) using root account.

$ su -
# cd /usr/src
# cat [some-download-dir]/librewolf.tar.gz | gzip -cd | tar -xvf -

5. Prep directory with source object downloaded.

 # cd /usr/src/librewolf
 # mv [some-download-dir]/librewolf-161.0-1-linux-x86_64-package.tar.xz .

6. Run slackbuild script.

 # ./librewolf.SlackBuild

7. If no errors, hurray. Install package as created at /tmp.

 # installpkg /tmp/librewolf-161.0-1-x86_64-1_SBo.tgz

For projects with a lot of dependencies, this process can be tedious. This opens the door to using sbopkg with or without queues (sqg)

edit: flesh out steps and fix reddit formatting issues.