Installing a package and its dependencies on Slackware via CLI (2024-09-10)

Slackware is notorious for a) shipping with many many packages built-in and b) being hard to install other packages as it has no native package and dependency management system. So installing the latest versions of nodejs and yarn on a Slackware machine is not necessarily trivial.

Here is how to do this using https://slackbuilds.org and sbopkg:

(Prerequisite: Install sbopkg from here: sbopkg : the slackbuilds.org package browser)


To install a package and all of its dependencies using sbopkg in queue mode on Slackware, you need to follow these steps:

  1. Sync the SlackBuilds repository: First, ensure that your local SlackBuilds repository is up to date. You can do this by running:
sbopkg -r
  1. Create a Queue File: If a queue file (which lists the package and its dependencies) does not already exist, you can generate one using sqg (SlackBuilds Queue Generator). Replace package_name with the name of the package you want to install:
sqg -p package_name

This command will generate a queue file for the package and its dependencies.
3. Install the Package and Dependencies in Queue Mode: Once the queue file is ready, you can install the package along with all its dependencies using the following command:

sbopkg -i package_name.sqf

Alternatively, you can specify the queue file directly:

sbopkg -i queue/package_name.sqf

This will build and install the package along with all the necessary dependencies specified in the queue file.