Have you ever reinstalled Slackware and spend a lot of time after this to install your favorite applications, compiling them one by one, or installing them from packages? Have you ever upgraded Slackware and ran into issues with the old programs that you had? This is a how-to guide for you.
Instead of compiling the programs one by one, or installing them manually, you can use one of the following methods:
Sbopkg
This is a little tool that is very handy after you re-install Slackware, and you want to get your favorite software back on the system. It uses a repository from SlackBuilds.
First, install sbopkg on your new Slackware installation:
Code:
wget http://sbopkg.googlecode.com/files/sbopkg-0.31.0-noarch-1_cng.tgz
installpkg sbopkg-0.31.0-noarch-1_cng.tgz
(If this code installs an outdated version of sbopkg/or doesn't work, go to sbopkg website, click on the "Package" link on the top-right side of the page, and install the downloaded package with installpkg)
Then, open up the terminal (konsole in KDE), and login with root (type "su"). Then sync the repository.
Now you are ready to install all you need:
Code:
sbopkg -i "YOUR PROGRAMS HERE"
For example, if you want to install conky and dar, you type:
Code:
sbopkg -i "conky dar"
You can browse the packages available here:
http://slackbuilds.org/repository/13.0/
If you want to browse the packages with sbopkg and use it's interface, just type:
when you finally make a list with all the packages you install every time, you make a list, with only the main names, separated by new line/interval, like this:
And save it in a sqf file. Then, with:
Code:
sbopkg -i filename.sqf
You can install the packages from your list. You can keep that list in your /home partition if you don't format it.
Pros:
+ The SlackBuilds.org repository gets updated very quick
+ You have a pretty wide catalog to chose from
Cons:
- It doesn't track the dependencies
- It takes a lot of time to compile the software
Slapt-get
Slapt-get is a pretty nice tool (if used right) to install software on your slackware system, from repositories with precompiled packages, with keeping track of the dependencies.
There are a lot of nice repositories for slapt-get, the most notable being Slacky.eu.
First, you have to install slapt-get. Go
here, download the latest version, and install it with installpkg.
Then, you need to edit /etc/slapt-get/slapt-getrc:
Code:
nano /etc/slapt-get/slapt-getrc
And add the repositories you need (append "SOURCE=http://somewhere..." at the end of the file) and remove whatever you want. There are instructions inside the file.
Then type
To sync slapt-get with the repositories.
Then, you are ready to install whatever you want:
Code:
slapt-get --install skype conky
You can list the packages you can install with:
You may install gslapt (also from the same website). It's an graphical interface to slapt-get.
Pros:
+ dependency resolution
+ installs pre-compiled packages
Cons:
- there isn't a big variety of repositories
Src2pkg
This is a tool which compiles a package from source. No need for SlackBuilds, no need for nothing. Just the source, and compile it with this tool.
Installation of src2pkg is a little bit more complex than the others.
Install the package from here:
http://distro.ibiblio.org/pub/linux/...nload/src2pkg/
Than run
and follow the instructions.
After this, you are ready to use src2pkg. You can directly specify a link to a source package, src2pkg will download it for you automatically.
Here is an example:
Code:
src2pkg -I http://downloads.sourceforge.net/project/conky/conky/1.7.2/conky-1.7.2.tar.bz2?use_mirror=dfn
This will download, compile, and install the conky package for you - automatically.
The process for every application is pretty straight-forward. You download it's source, and you use src2pkg to compile it, and automatically install it. Saves a lot of work.
Pros:
+ no need to rely on repositories, SlackBuilds, etc.
+ you can easily specify which version of a package you want to get
Cons:
- You need to manually update your links to sources
Methods for keeping track of dependencies
Ever wanted to share your packages with others, and include dependency information in them, so they can be handled well by slapt-get? Ever wanted to make your own repository? Here are some tools that find the dependencies of your packages.
Requiredbuilder
http://stabellini.net/requiredbuilder.html
Pros:
+ Can keep track of Python library dependencies and other script libraries
+ Has a lot of options
Cons:
- Very slow
Depfinder
http://freshmeat.net/projects/depfinder
Pros:
+ Very fast
Cons:
- doesn't keep track Python libraries, at least for now
WARNING
You can't use those tools to find the dependencies of a package, which dependencies are NOT met. All the dependencies of the package you are tracking the dependencies of MUST be met, or the dependencies that aren't met won't show in the package dependency list.
Recommended repositories with pre-compiled packages
Slacky.eu
This repository contains a lot of Slackware packages that doesn't replace a lot of the stock packages. It's definitely the richest repository with pre-compiled packages, and it also contains dependecy information. It even contains LXDE and Gnome.
Line in slapt-getrc:
Code:
SOURCE=http://repository.slacky.eu/slackware-13.0/:PREFERRED
Gnome SlackBuild
A repository containing Gnome and a lot of applications that come with Gnome/with the Gnome distributions. Also very rich. The problem with it is that replaces a lot of the stock Slackware packages, but if you don't mind it (I don't think it will cause a lot of stability issues) it's ok. It contains dependency information.
A line for slapt-getrc:
Code:
SOURCE=http://www.slackware.org.uk/gsb/gsb-2.26_slackware-13.0:PREFERRED
GWARE
A repository containing a really basic build of GNOME, again, it doesn't replace a lot of the stock packages. However, it contains only GNOME and GNOME applications (that is it's goal), and gets updated quite slowly. Also, it doesn't contain dependency information.
There isn't a version for Slackware 13.0 yet.
Alien's SlackBuilds
A SlackBuild repository, containing pre-compiled packages. With the Alien's activity in SlackBuilds.org, I don't think it will be seriously supported, but I don't know. It contains dependency information.
slapt-getrc line:
Code:
SOURCE=http://connie.slackware.com/~alien/slackbuilds/:PREFERRED
Salix repository
This is the repository of SalixOS, and it's compatible to Slackware.
What I noticed is that it has a lot of games, and it also has some parts of GNOME.
It has dependency information, and it's well maintained.
slapt-getrc line:
Code:
http://download.salixos.org/i486/13.0/:PREFERRED
Take notice that this article isn't finish. I'm going to extend those instructions and add information about slackyd, slackpack. I will also add more info about how to make your own repository.
Thanks to:
> slakmagik for the suggestion for sbopkg queries.
Hope that helps.