Title: How to use Slackware community slackbuilds
Author: Solène
Date: 13 November 2020
Tags: slackware
Description:
In today article I will explain how to use
[Slackbuilds](https://slackbuilds.org/) repository on a
[Slackware](https://www.slackware.com) current system.
You can read the [Documentation](https://slackbuilds.org/howto/) of
slackbuilds for more information.
We will first install **sbotools** package which make the use of
slackbuilds a lot easier: like a proper ports tree. As it's preferable
to let the tools create the repository, we will install them without
downloading the whole slackbuild repository.
Download the slackbuild
[from this
page](https://slackbuilds.org/repository/14.2/system/sbotools/),
extract it and cd into the new directory.
$ tar xzvf sbotools.tar.gz
$ cd sbotools
$ . ./sbotools.info
$ wget $DOWNLOAD
$ md5sum $(basename $DOWNLOAD)
$ echo $MD5SUM
The two md5 string should match.
Now, run the build as root
$ sudo sh sbotools.SlackBuild
[lot of text]
Slackware package /tmp/sbotools-2.7-noarch-1_SBo.tgz created.
Now you can install the created package using
$ sudo /sbin/installpkg /tmp/sbotools-2.7-noarch-1_SBo.tgz
We now have a few programs to use the slackbuilds repository, they all
have their own man page:
+ sbocheck
+ sboclean
+ sboconfig
+ sbofind
+ sboinstall
+ sboremove
+ sbosnap
+ sboupgrade
# Creating the repository
As root, run the following command:
# sbosnap fetch
Pulling SlackBuilds tree...
Cloning into '/usr/sbo/repo'...
remote: Enumerating objects: 59, done.
remote: Counting objects: 100% (59/59), done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 485454 (delta 31), reused 14 (delta 0), pack-reused
485395
Receiving objects: 100% (485454/485454), 134.37 MiB | 1.20 MiB/s,
done.
Resolving deltas: 100% (337079/337079), done.
Updating files: 100% (39863/39863), done.
The slackbuilds tree is now installed under `/usr/sbo/repo`. This
could be configured before using `sboconfig -s /home/solene` which
would create a `/home/solene/repo`.
# Searching a port
One can use the command `sbofind` to look for a port:
# sbofind nethack
SBo: nethack 3.6.6
Path: /usr/sbo/repo/games/nethack
dataswamp.org:70 /~solene/article-slackware-slackbuilds:85: port field too long