Slackware Package Management - slackpkg & sbopkg

Slackware Package Management - slackpkg & sbopkg
When I first used Slackware Linux my main concern was package management, not because of dependency tracking but lack of packages in the slackpkg repos, after a little searching I found slack builds, I thought this was really nice, the only issue I found was how do I track everything and keep it all up to date without having to write loads of scripts, then I searched a little more and found sbopkg, it's the tool that makes slack builds probably easier to track and use then slackpkg.
First we'll start off with how to use slackpkg and then we'll look into sbopkg, slackpkg is a good and useful package manager, slackpkg wont pull in millions of packages just to run a text editor and will never put you in dependency hell, it'll just do what you tell it to do with no extra annoyances and that's one of the big reasons I like it so much, slackpkg has none of the stuff I find extremely annoying with yum, apt and other GUN/Linux package managers. So the first thing we need to do to use slackpkg is select the mirrors we want to use, first open up the mirrors file with vim.
vim /etc/slackpkg/mirrors
Now remove the hash's from in front of the mirrors you want to use. Next we need to update the package database, you can do this with the update option.
slackpkg update
Next let's say we want to install Firefox as a example, if we want to search for packages in slackpkg's reops, we can use the search option.
slackpkg search firefox
You'll see that mozilla-firefox is showing up from the search, it also says if you have it installed or not, right let's say we don't have Firefox installed, we'll install it with the following.
slackpkg install mozilla-firefox
A window will popup confirming the package you want to install, make sure Firefox is selected to press enter on ok. Next let's say we don't want Firefox, we can delete it with the following command.
slackpkg remove firefox
That's all of the installing/removing packages done, now let's look at upgrading packages. You can upgrade all of your packages with the follow command.
slackpkg upgrade-all
That's it that's how to use slackpkg, sbopkg is even easier to use I believe so now let's look at that.
The first thing we need to do in order to install sbopkg is download it, go here and get the newest prebuilt version. Next install it with the following command.
installpkg /path/to/archive/sbopkg-version-noarch-1_cng.tgz
That's it, we now have sbopkg installed, to use it run the following as root.
I'm sure I don't need to explain how to use this as it's so easy, press enter on search, search for what you want, add it to your queue or install it, easier then people make Slackware Linux package management sound don't you think?




Page generated in 0.0066 seconds.