[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

This is an old revision of the document!


sbopkg

This page is a WIP (work in progress)

sbopkg is a command-line and dialog-based tool to synchronize with the SlackBuilds.org (“SBo”) repository, a collection of third-party SlackBuild scripts to build Slackware packages, and to compile and install the resulting slackware packages.

Installation

Obtaining sbopkg

The sbopkg application is found on the project's website at sbopkg.org. You can choose to download the pre-compiled package or the source code directly from the homepage, for this tutorial we will be using the pre-compile package.

Once you locate the download button use your favorite download manager to download the resulting package into your chosen directory.

Installing sbopkg

Once the download has completed you will need to enter your root or priveledged account to run the installation application.
Enter the chosen download directory and enter the following, substituting the version number with the current version.

#installpkg sbopkg-0.35.0.tar.gz 

Application Configuration

In most cases the application's default configuration will work, changes should be performed to target alternate repositories and change the target locations in the local filesystem.

All configuration files for sbopkg are kept in the /etc/sbopkg directory. The directory contains the sbopkg.conf file which is the main coniguration file, the rename.d directory which contains a list of files to be renamed for simplicity and the repos.d directory which contains the list of usable repositories.

Editing sbopkg.conf

Prior to editing the configuration file, read the manual file by issuing the following command in a terminal. man 5 sbopkg.conf

The sbopkg.conf file is well documented with comments explaining the various options, read the comments associated with the option that you wish to change to confirm that the syntax and chosen options are correct. <note>Current Working Point</note> Now, run the command sbopkg to execute the application which will do the initial file setup and synchronization,
<code>#sbopkg</code> This will ask for an option to create a list of directories to maintain its data base. Hit the key,
'c' to create it. Then, a ncurses based menu will then appear. In that menu, choose the sync option, which will be the first option.
=== Making Sbopkg Handle Dependencies === By default this sbopkg, dont have automatic dependency check. But, it can be done using the following steps,
<code># cd /var/lib/sbopkg/ </code> <code>#git clone git:
gitorious.org/sbopkg-slackware-queues/sbopkg-slackware-queues.git</code>

Previously, there will be two directories.After the above command, one more new directory, called sbopkg-slackware-queues will get added.By default the directory queues get checked. Now, by making a soft link named queues to the sbopkg-slackware-queues , this added new directory will get checked.

#rm -rf /var/lib/sbopkg/queues
#ln -sf /var/lib/sbopkg/sbopkg-slackware-queues /var/lib/sbopkg/queues 

Now, just check it, using

#ls -al /var/lib/sbopkg/queues

or

#readlink /var/lib/sbopkg/queues

Now, to update the queue files periodically, choose a mirror,suitable for you [the list is organised by the Slackware version ] , in the /etc/slackpkg/mirrors

#nano /etc/slackpkg/mirrors 

Enable a mirror, by removing the comment symbol(#), save and exit the file.

Run the following commands, to get the gpg key for image validation.

# cd /var/lib/sbopkg/queues 
#slackpkg update gpg

after the key has been downloaded, issue the command, slackpkg update to grab the new changelog

#slackpkg update

Update the queue files,

#cd /var/lib/sbopkg/queues 
#git pull

Installing a package using sbopkg

The default syntax is, sbopkg -i <PACHAGE_NAME> . Lets install a package using sbopkg.

#sbopkg -i sl

This will give the user, an option to use Queue File or not to use.Use the Queue File to handle dependencies automatically.A package will be placed in /tmp location.These packages can be moved to anyother place in the disk, so that no need to download each and every time.

#mv /tmp/*.tgz  /your_desired_localtion/. 

Now, the sl application is installed. This application can NOT be run as root user

$sl

User can browse the repository, if the exact package name is not known. There are two [ but not limited to ] ways to do that.

#sbopkg

and browse this command-line based application. Or , visit http://slackbuilds.org/ and use the search bar, to get the exact name of the package, to use with the sbopkg

Sources

* Originally written by crond * Contrbutions by mfillpot

 wiki:user:mfillpot:sbopkg ()