Slackware: Sbopkg and SlackBuilds, install packages easily

Continuing with the series of articles that try to demystify this great distribution, it is time to present what from my perspective is the simplest way to install packages within Slackware, it's about the SlackBuilds and a small application that it simplifies us even more life when managing them, Sbopkg.

It is worth mentioning that this tool DOES NOT resolve dependencies like most tools for SlackwareHowever, this can be a very bearable task, as we will try to explain later.

What are Slackbuilds?

First it is necessary to mention that the "traditional" way of installing packages in Linux it is compiling from source code, which in general works but can present itself as a future problem, for example, when an already installed package tries to update and the system administrator (you) forget compilation values.

To avoid this type of inconvenience in Slackware the decision was made to use a script to automate the installation process, in such a way that to install a new version of each package, all you have to do is modify the variable that informs the system about the version of that package.

To this collection of scripts they were called SlackBuilds and they are to say the least, absolute ones blessings sent by the almighty God Tux for all those users who did meditation for weeks to reach the level of enlightenment that led them to use Slackware (My mother says I have a lot of imagination) ...

The way to use them is very simple, first we go to the page where the complete collection of Slackbuilds packages is located, it is about http://slackbuilds.org/.

and we use its integrated search engine to locate the packages we need, for example let's search "Flash", so we will get a list of packages that match the search.

For this case we will choose to install «flash-player-plugin«.

We will get package information that we choose, for example, its version, a brief description, its official page, official download links from where we will obtain the source code in its available architectures and a download link to the SlackBuild who will take care of the installation process.

We downloaded the source code and SlackBuild.

We extract el SlackBuild.

We move el source code (uncompressed) within the directory of the SlackBuild that we just extracted.

We open our comfort in the directory of SlackBuild.

Now we will create the package installable, but first it is necessary log in Be root.

For, architectures de 32 bits we type «. /flash-player-plugin.SlackBuild ».

For, architectures de 64 bits we type «ARCH = x86_64 . /flash-player-plugin.SlackBuild ».

The process of packaging and if everything went well in the end he gives us the rue where the package created, in this case it is "/tmp/flash-player-plugin-11.2.202.243-x86_64-1_SBo.tgz".

Now subtract install el package by tool which Slackware provides us for this task (in a later writing these tools will be discussed in depth), is installpkg.

We type  "Installpkg /tmp/flash-player-plugin-11.2.202.243-x86_64-1_SBo.tgz".

The process of installation and if everything went well, it tells us that the package has been installed.

As can be seen, the process not so complicated, although yes could result slightly tedious In principle, for example, what happens if the package we want to install requires a large number of dependencies, the procedure of downloading each SlackBuild and every Source it could make more than one decide to abandon the distribution.

Fortunately we count and with a tool that can greatly simplify the task of install applications, although I insist, don't resolve dependencies, "Sbopkg".

sbopkgIs a tool en Command line which this synchronized with the repository de slackbuilds de slackbuilds.org (SBo), in such a way that if we want to install a package, we must first go to slackbuilds.org to check that it is available, as well as to verify its correct name and the dependencies that it needs.

Using of example installation previous, «Flash-player-plugin», we will notice the difference.

Just enough key "Sbopkg -i flash-player-plugin".

Final report: DO NOT it is necessary that we download neither the SlackBuild nor Source, since this tool takes care of everything.

we confirm what do we want to install typing «P».

And we will get the package ya installed for whatever our architecture.

 Final report: Previously we must have installed sbopkg (Process detailed below), this application is used in the console and it does not care what directory we are in.

 INSTALLING SBOPKG

 For, install sbopkg we must go to its official page discharge y get it

Once Discharged.

We open our comfort in that directory and we type "Installpkg sbopkg-0.36.0-noarch-1_cng.tgz" (Let's not forget that should to be Be root)

And we already have installed sbopkg.

Once installed sbopkg, the first thing we should do is synchronize su basis de data with that of slackbuilds.org, for this we type "Sbopkg -r".

Once completed la synchronization, we are ready to install may be made by each package available through sbopkg.

To carry out the management de packages through sbopkg we have Both of you Options, the classic line de commands or by sbopkg at their interface ncurses.

It was already seen in the example previous the way of install un package with sbopkg en line de commands, but what if we want install un package which require dependencies, to avoid installing each package independently, we could specify all the packages to install within double quotes (").

For example, for install "Supertuxkart" requires two dependencies, "OpenAL" and "irrlicht".

So instead of typing each package by separate, we type in a single line 'sbopkg -i "OpenAL irrlicht supertuxkart"'.

Final report: Let's observe how each package is separated by a space and the set of them is enclosed in double quotes («).

So we will obtain supertuxkart with its dependencies covers.

To get one complete list the Options of package handling that allows us sbopkg, enough with key on the console man sbopkg.

La another option that offers sbopkg, it is by using its interface ncurses. To access it, just key "Sbopkg" in our console.

As will launch a interface where we can observe we have Options that will allow us sync repositories, install, uninstall, to update packages among others, its use is very simple since it is enough to select the options we need.

Broadly speaking, it is the way in which we can have a system Slackware very bearable, if we combine the number of packages available with the installation of Slackware and those available through SlackBuilds we will get a very long list of packages for this great distribution.

There are no more excuses let's use slackware !!! ...


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

51 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Blaire pascal said

    Very interesting hehehe. I've always wanted to give this distro a try, it looks great, but I don't install it for the simple fact that I don't like its logo, just like Debian and Gentoo. These contributions are appreciated. You are the Slackware equivalent of Perseus with Fedora, Elav with Debian, and KZKG ^ Gaara with Arch XD.

    1.    DMoZ said

      Thank you !!! ...

      When you give it the opportunity, you will understand that the appearance of the logo is the least of it 😉 ...

      Cheers !!! ...

      1.    Blaire pascal said

        Hehehe of course. I'll test it in vm and then in hardware to see how it works.

  2.   kik1n said

    Hmm with this, it didn't make me want to try slackware anymore. Hahahaha I am of the mentality of an operating system has to be:
    Simple, Fast, Stable and a lot of software.

    Where I'm comfortable with Arch using pacman: D. Although it made me want to go back to Fedora: D.

    «The“ traditional ”way to install packages in Linux is compiling from source code» mmm reminded me of gentoo, where everything is compiled and I like portage better 😀

    1.    DMoZ said

      Slackware is Simple, Fast, Very stable and with a LARGE amount of software just as I mention in the note ...

      Right, pacman is very comfortable 😉 ...

      I mean that it is the traditional way in Linux, therefore in Slackware and all other distributions ...

      If you read the note you realize that you don't have to compile anything, it takes care of all sbopkg ...

      Cheers !!! ...

      1.    kik1n said

        Well I just reinstalled arch, I found some bugs. I don't like using arch with these flaws anymore.
        It only detects 2 cores (I have 4)
        Sound problems, with and without pulseaudio.
        So far only those.

        I want to go for a stable distro.

        Slackware = Stable + "Current"
        Debian = Stable (but it won't let me install, all the isos I download say: It won't install the modules and it may affect the installation)
        As a last resort, I totally return to win.

        1.    kik1n said

          Slackware has no kernel pae ???

          1.    DMoZ said

            If kik1n, it has PAE support ...

            Cheers !!! ...

      2.    joakoej said

        It's not that simple, everything is fine with the packages, but I don't see the grace to do all this when I can install a distro with a package manager that resolves dependencies and that's it, I say, because the truth is that I don't see any advantage to that does not result in dependencies, maybe you save a couple of megabytes of space, but what do I know.
        I stay with Arch too.

        1.    kik1n said

          Well now I prefer Ubuntu a thousand times to another distro. I've been through almost all of Linux, from its stable versions, rolling and testing.

          1.    joakoej said

            Yes, Ubuntu is good, too bad Cinnamon and Mate do not work so well and that it is not bleeding edge, if so, I would prefer it over Arch or Fedora, but hey, maybe if they make it rolling release as they say they are going to do also improve in those aspects. Anyway, it is still my third option.
            Although, now I was interested in the distros in which things are compiled, to know and because they say they are faster, they are a pain in the ass, but the truth is that I could never compile anything, so help me out there.

          2.    joakoej said

            By the way, is it really easier for you to make a slackbuild or does it not change much with the traditional way of compiling?

        2.    omeza said

          Slackware already brings its package manager which is pkgtool, Slackbuilds is for programs that are not within the official ones that come on the installation DVD.

      3.    joakoej said

        Well I tried Arch Linux with abs, but it didn't turn out very well, there were several packages that refused to compile, but otherwise it was a method more or less as practical as using sbopkg.

  3.   downloads said

    I loved your explanation | remember that there are other sources both official and unofficial but equally valid to install software in «slack» | I haven't had to compile anything at all in slackware yet. Cheers

    1.    DMoZ said

      Indeed, almost everything that I have needed is either found as an official package or is found as SlackBuild ...

      Cheers !!! ...

  4.   Mr. Linux said

    DMoZ, thank you for informing about Slackware, a stable and fast distribution, with good software, also updated, and believe me easy to use, but to reach this conclusion the only way is to install it and use all its tools.
    Long live Slack.

    1.    DMoZ said

      I totally agree with you Mr. Linux ...

      I have already made this a personal challenge, to provide the community with information about this distro in our language, and where else to do it than on this great site =) ...

      Cheers !!! ...

  5.   proper said

    DMoZ excellent contribution, also note that there are other pages where you can find SlackBuilds such as that of the maintainer of the 64-bit version Eric «AlienBOB» Hameleers http://slackware.com/~alien/slackbuilds/ or the italian page http://www.slacky.eu/. Some time ago I created a couple of packages that are now on SlackBuilds.org, if you are interested in learning how to pack and need help, do not hesitate to ask 😉

    Greetings.

    1.    DMoZ said

      I remember that the last time I checked the Alien SBs they were somewhat old packages, and on slacky I have visited it to get applications already packaged and ready to install with installpkg ...

      I'll give you another review and I'll come here to share the results ...

      Thanks Proper, if I am interested in learning how to do it, as soon as I have the time to investigate I will consult you if I get stuck in something ...

      Cheers !! ...

    2.    Mr. Linux said

      Proper, I am a faithful student of yours, if you teach us how to package in Slackware.

  6.   ianpocks said

    It looks cool and from what you say apparently it is not difficult ...

    I tested it about 3 years ago, it gave me a feeling of security. Although that of the dependencies threw me back ...

    And if, as you say, there are many packages that make your life easier without having to compile, but I think that what makes it special is that it is a distro of yesteryear and therefore, as well as arch, its thing is to use pacman and its official repository in slack his thing is to compile. That gives you learning (it is also true that not all of us have the time or desire to start typing), but I think that the slackware philosophy is closer to the philosophy of the bsd world than the world of linux. Where compiling and looking at dependencies among other things is important.

    It is true that it is very good that there are tools that simplify the life of the user, but I believe that this does not fit into their philosophy. And as a good KISS distro, his thing is to compile and leave the tabs seeing the dependencies (at least at the beginning).

    I think that the fact that it has vanilla packages makes it special, and that all linux lovers should try the four distros that make linux especially important and that have contributed something: Debian, Slackware, Arch and Gentoo.

    Sorry for my long comment, I extended more than it should.

    To all this, it is appreciated that you contribute Slackware tutorials and much, more knowing that there are very few in the Spanish language on the net. So it is also appreciated that you make it so fun and simple.

    Greetings

    1.    DMoZ said

      Thank you !!! ...

      As I said, Slackware is very KISS, the dependencies thing is not complicated, you go to SlackBuilds.org and right there it marks the dependencies that x package needs, all you have to do is copy the names of the dependencies and in the console do :

      #sbopkg -i "dep1 dep2 dep3 dep4 package"

      And voila, the package is installed with the dependencies covered ...

      In general it is very easy ...

      Cheers !!! ...

    2.    joakoej said

      I miss you Fedora, one of the ones that contributes the most.

    3.    joakoej said

      Likewise, you don't have to compile, slackbuilds, and I think any .txz or .tgz package comes ready to install, but they don't resolve dependencies. If you want to compile, get an LFS or install Gentoo, in Slackware you can also compile the same, but it is the same or even better for that, use any distro.

      1.    joakoej said

        Ah make no mistake, the slackbuilds do have to be compiled, but the result is a package ready to install

  7.   hexborg said

    The post is appreciated. With sbopkg the dependencies seem quite bearable. That was my least favorite thing about slackware. The truth is that at the moment I do not think I use it. I am very comfortable with arch and have other things on my hands, but I will consider it as an option for the future.

    1.    DMoZ said

      Nothing to be thankful for =) ...

      Yes, it turns out to be very, very bearable ...

      Long live Slackware, long live Arch, long live Linux !!! ...

      Cheers !!! ...

  8.   krel said

    Slackware is a really simple distro, the most Unix of Linux. Her current big problem is precisely being too much Unix, a price that she pays as much as BSD and even Gentoo. This dependency management theme gives it a pretty strong Unix flavor, but like everything else, I love blue cheese and I admit it's not something that too many people like.

    Although many Archers get bounced, the greatest exponent of KISS is Slackware, Lilo, Sys V, and a lot of BSD-style everywhere. In short, it overflows with simplicity. Many may think that living in the past but rather I think it is a "brand" issue, it is one thing or another, within KISS there is no middle ground.

    I currently use the oldest son of Slackware, openSUSE, and although they no longer have much in common, if we take a look at the Slackware book we will see that there is still some of that genetics and I am pleased.

    DMoZ: chapó, what you are doing has to be recognized by unesco as an immaterial asset of humanity. 🙂

    1.    DMoZ said

      = D Krel my friend !!! ...

      I agree with you, Slackware is the most Unix distribution that exists (well, at least the ones I have used, and I have used many xD) ...

      A lot of these articles come thanks to Krel, and just as promised, the acknowledgment is at the end of the previous article ...

      https://blog.desdelinux.net/que-hacer-despues-de-instalar-slackware-14/

      Cheers !!! ...

      1.    krel said

        Yes, I have seen it, I have been following you. 🙂 Thank you. However all the credit is yours, you are doing a spectacular job with the posts.
        Greetings.

        1.    DMoZ said

          = D Thank you !!! ...

          Someday you should honor us with your notes on these sides ...

          Cheers !!! ...

  9.   Ghermain said

    Good article for those who have the time and knowledge and do not mind messing up and reinstalling if something goes wrong, I at my age (which today I renew another year) 😉 I started using Linux after a lifetime of W $ I prefer not to complicate the time, but for those who make Linux and the S, O, their lives this explanation must be an exquisite computer cake very well decorated.

    Thanks for sharing.

    1.    DMoZ said

      = D Thank you !!! ...

      It is only the motivation to give back to the community what they do ...

      Cheers !!! ...

  10.   Rots87 said

    For some strange reason I feel more lost than when I read the pacman and yaourt = O installation form ... I have a lot to learn lol

    1.    DMoZ said

      Then you have to reread the article xD ...

      It is simpler than it seems in reality, everything is enough to put it into practice ...

      Cheers !!! ...

  11.   eco-slacker said

    Very good, the dissemination work you are doing is admirable.
    Keep it up, regards.

    1.    DMoZ said

      = D Thanks brother !!! ...

      I must admit that your blog has been very useful to me and has had a great influence on my deciding with Slackware, which I greatly appreciate =)…

      Cheers !!! ...

  12.   deadlocked said

    Slackware is the most purely Linux distro in my opinion with no add-ons. It has never died for nothing, it only gives users the freedom to make a custom system. It is not a distro for those who fall asleep in the Laureles. It is a true system for Scouts who like to learn everything little by little. Many users do not appreciate that. It's the distro that has a dozen good drifts. Since there are too many options in the Linux world for the same purposes, Slackware offers a glimpse of a plain and simple OS. For programmers or explorers of in-depth technology.

  13.   VictorHenry said

    Greetings to DMoZ and all the friends of Slackware !!!

    Caramba!!! this little ant called "sbopkg" is a marvel !!!
    That does everything !!!
    Last night I started to install Chromium 24.0 (without using "sbopkg"), which has only one dependency, and I was very judicious, I downloaded the Sources and SlackBuilds of both (Chromium and dependency) and I had to be patient, because this version Chromium DOES require patience.
    And I remembered that I needed to install VLC, my favorite video player ... And walaaa! It has 23 dependencies, that gives 48 manual downloads (of only the Sources and SlackBuilds) in addition to the processes involved in the installation. Ufff !!! I got discouraged, I DO NOT deny it. However, I prepared coffee from my beloved Colombia and got to work.
    While downloading the dependencies I looked at this tutorial and at that application called "sbopkg" -simple, small, innocent, «hidden» but WORKING, like an ant - ... mmmm ... I stopped the downloads, installed the ant and made it work with all those dependencies and how wonderful !!! I drank my coffee and that was done by itself !!! It is my amazement, because in Slackware I have never seen this.

    I love this distro more and more.

    Greetings from Colombia!!!

    1.    kik1n said

      Yeah, I love sbopkg, it's super.
      There is also another way to install the packages that I liked the most.

      http://ecoslackware.wordpress.com/2011/04/24/instalar-vlc-1-1-9-en-slackware-13-1/

    2.    federico said

      sbopkg is wonderful, it is very easy to install a package with this tool, no matter how many dependencies the package has.
      Regarding chromium, what you say is very true, to install this version you have to arm yourself with a lot of patience and for my taste it is not worth it having firefox by default.

      Greetings!

  14.   Ricardo said

    Hi, even though I've been using linux for years, this is the first time I've installed slackware. I'm starting to like it but there is one thing that breaks my head, see if you can help me ...

    To install Vlc I launch the following:

    sbopkg -i "a52dec faad2 twolame lua portaudio libavc1394 libdca libdvbpsi libdvdcss libdvdnav libmatroska libmodplug libmpeg2 libshout libupnp schroedinger vcdimager faac musepack-tools ffmpeg speex libass libdc1394 live555 vlc"

    It happens that there are dependencies that give me an installation error, either because there is an old version of the dependency and a more current one is required, or because a .h library is missing as is the case with libmastroska.
    Every time you get some kind of error, you have to install the broken dependency in another terminal and re-compile everything for vlc.

    I am doing something wrong? Can you help me?

    Thank you!

    1.    kik1n said

      That is why I am no longer with Slackware.
      http://ecoslackware.wordpress.com/2011/04/24/instalar-vlc-1-1-9-en-slackware-13-1/
      This guide helps, and I apply it with many packages, it works very well.

      I recommend you better gentoo.

      1.    Ricardo said

        Why are you recommending gentoo over slackware? I used to try Sabayon once but curiously the system was slower than an ubuntu or a linux mint ...

        A abrazo.

        1.    kik1n said

          No, there is a world of difference between sabayon and Gentoo.
          Gentoo runs a thousand times faster than all operating systems combined (I may be exaggerating), but yes, it is very fast.
          More stable than debian and slackware.

        2.    kik1n said

          I just had a talk with Tete plaza about gentoo and their performance.
          Hope this can help you. 😀
          https://plus.google.com/u/0/108727918131989030219/posts/7V3Ap3qNVDE

  15.   frilly said

    The story is not like that !!
    Slackbuilds.org is a site that provides the same build scripts as official slackware. Providing Slackbuilds does not mean that it is an official source. This site is maintained by contributors so from time to time there are occasional dropouts and we run out of updated packages. A Slackbuild is a script to create a package ready to install in Slackbuild something like the rpm spec, There are other Slackbuilds providers, Slackbuilds.org has an extra point because even the creator of Slackware is around here. Managing a slackbuild is not only about uploading the version of the package and it works, there has to be an integration process and all that, if you don't believe me check the development git of Slackbuilds.org.

  16.   Rancher said

    To prove it has been said relative!
    GREETINGS.

  17.   LUIS ALBERTO. said

    LEWIS.
    I am starting the world of Linux I have installed slackware since I have read a lot about this OS and my current problem is that I cannot install OpenOffice. Please request support and how is the installation process. thanks. Please write to my email about this topic in question.

  18.   josalz said

    You saved me, it cost me to see how installing a new program is laborious, I was on windows I put a blue screen pendrive, the only system that was running is slackware 14.2 more reason to continue learning I was almost throwing in the towel hahaha, Thanks!