HowTo Slackware

Configure slackpkg and slackpkg+ on Slackware

Practical guide to update Slackware cleanly and add extra repositories with slackpkg+.

Before updating a remote server, open a second SSH session and always read the changelog for your Slackware version.

1. Preparation

ping -c 3 slackware.uk
df -h
cp -a /etc/slackpkg /root/slackpkg-backup-$(date +%F)

2. Configure slackpkg (official mirror)

Open /etc/slackpkg/mirrors and enable only one mirror line for your release.

# example (uncomment only one line)
# https://mirrors.slackware.com/slackware/slackware64-15.0/

Import/update GPG keys if needed:

slackpkg update gpg

3. Correct update flow (Slackware)

slackpkg update
slackpkg install-new
slackpkg upgrade-all
slackpkg clean-system
slackpkg clean-system may propose removing important packages if you use third-party repos. Read carefully before confirming.

4. Handling .new files

After updates, Slackware may leave .new files in /etc. They must be compared and merged.

find /etc -name "*.new" -print
slackpkg new-config

5. Install and configure slackpkg+

slackpkg+ extends slackpkg to use multiple repositories (e.g. extra or personal repos).

  1. Install the slackpkg+ package for your Slackware version.
  2. Edit /etc/slackpkg/slackpkgplus.conf.
# Basic example
SLACKPKGPLUS=on
MIRRORPLUS['varallinux']=https://www.varallinux.it/Download/
REPOPLUS=( varallinux )

If you use multiple repos, set priorities and blacklist to avoid conflicts.

PKGS_PRIORITY=( varallinux )
BLACKLIST=( aaa_base kernel-* )
The blacklist is just an example: adapt it to your system. Avoid overwriting core packages without a reason.

6. Practical usage with slackpkg+

slackpkg update
slackpkg search packagename
slackpkg install packagename
slackpkg upgrade packagename

7. Best practices

Quick checklist

[ ] Correct official mirror configured
[ ] slackpkg update gpg executed
[ ] update / install-new / upgrade-all
[ ] clean-system evaluated carefully
[ ] .new files reviewed
[ ] slackpkg+ configured (if used)
[ ] External repositories documented

Back to the Linux HowTo section