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

**URL:** <https://pluralist.net/t/installing-a-package-and-its-dependencies-on-slackware-via-cli-2024-09-10/195>\
**Category:** breadcrumbs\
**Tags:** slackware\
**Created:** [September 10, 2024, 1:28pm UTC](https://pluralist.net/t/installing-a-package-and-its-dependencies-on-slackware-via-cli-2024-09-10/195 "2024-09-10T13:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![delyan](https://pluralist.net/user_avatar/pluralist.net/delyan/32/245_2.png) [@delyan](https://pluralist.net/u/delyan)\
**Post date:** [September 10, 2024, 1:28pm UTC](https://pluralist.net/t/installing-a-package-and-its-dependencies-on-slackware-via-cli-2024-09-10/195/1 "2024-09-10T13:28:38Z")

</div>

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](https://slackbuilds.org) and `sbopkg`:

(Prerequisite: Install `sbopkg` from here: [sbopkg : the slackbuilds.org package browser](https://www.sbopkg.org/downloads.php))

* * *

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:

```bash
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:

```bash
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:

```bash
sbopkg -i package_name.sqf

```

Alternatively, you can specify the queue file directly:

```bash
sbopkg -i queue/package_name.sqf

```

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