Home Linux Community Forums Linux Distributions Slackware How to Build a Slackware Package

How to Build a Slackware Package

Link to this post 21 Mar 10

Building a distro package is preferred over running a standard compile and install for most application because you want the resulting application of library to be properly referenced and manged through your package manager.

So, I figured it is time to share some good links and give the information necessary for new and experienced users to make their own packages of the various applications and libraries that they wish to use on their systems.

For information about making a Slackbuild script refer to

To find recommended compile time agruements and see working scripts for examples you can look at the scripts on or look in the sources directory of your installation disk.

Once your scripts are complete you can submit them to to share them with the community.

If you are attempting to build a package and having issues feel free to ask for assistance here.

Link to this post 09 Apr 11

A while ago I wrote a slackbuild generator that creates a skeleton slackbuild.
I use it whenever I need to build a slackware package from source.
If the building follow the classic

make install ...

there are just minor adjustments to make, and the slackbuild is ready to use.
What I always do is
1. unpack the sources
2. read the INSTALL, README, ... to check for specific install directives
3. also check the Makefiles, etc., (see if DESTDIR, or something similar is used)...
Sometimes you need to tweak some files (Makefile, source files, ...)
4. I proceed step by step: see if the configuration part worked ok, then 'make ', etc.

I posted the script here:

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Linux Training / Board