Gregg's MOTD

Tips & Tricks that I've Encountered Over the Years...

SlackBuilds: Where Are They Located?

August 29, 2023 — Gregg Szumowski

You should find a file in /var/log/packages for each SlackBuild that you have installed. You can distinguish the SlackBuilds package from standard Slackware packages by the substring SBo embedded in the filename. So you can create a list of all of the SlackBuilds installed on your machine by just doing an ls *SBo* in that directory.

ls /var/log/packages | grep SBo

or

ls /var/log/packages/*SBo

If you plan on reinstalling it may be a good idea to pipe that information out to a text file.

ls /var/log/packages | grep SBo > SBo_packages.txt

If you cat one of those files you will display a text file that lists certain information about the package, the location of the package and a brief description. For example, the file for sigil package starts like this:

PACKAGE NAME: sigil-0.9.12-x86_64-1_SBo
COMPRESSED PACKAGE SIZE: 7.7M
UNCOMPRESSED PACKAGE SIZE: 25M
PACKAGE LOCATION: /tmp/sigil-0.9.12-x86_64-1_SBo.tgz
PACKAGE DESCRIPTION:
sigil: sigil (Multi-platform WYSIWYG ebook editor)
sigil:
sigil: Sigil is a multi-platform WYSIWYG ebook editor. It is designed to
sigil: edit books in ePub format.
sigil:
sigil: Homepage: https://sigil-ebook.com/
sigil:

It then goes on and displays a file list of all of the files contained by the package and where they were installed.

Armed with the above information, you can the cd to the /tmp directory and find the package itself:

$ cd /tmp
$ ls -l sigil-0.9.12-x86_64-1_SBo.tgz
-rw-r--r-- 1 root root 8070041 May 29 16:24 sigil-0.9.12-x86_64-1_SBo.tgz
$

Tags: cli, slackware, slackbuilds, motd