|Home About Us Services Clients Resources Blog Careers Orderbox™||contact us Site map links|
A Short and Sweet Slackware Package Creation Tutorial
or... 'How to work with a .tar.gz distribution more easily than with that blamed RPM' ;-). The instructions below work with the majority of autoconf-enabled source distributions.
# mkdir -p /pkgcreate/usr/local
# tar -zxvf foobar-a.b.c.tar.gz # cd foobar-a.b.c # ./configure --prefix=/usr/local # make
# make install prefix=/pkgcreate/usr/local # make install DESTDIR=/pkgcreate/usr/local # make install ROOT=/pkgcreate/usr/local # make install prefix=/pkgcreate/usr/local \ DESTDIR=/pkgcreate/usr/local \ ROOT=/pkgcreate/usr/local
# cd /pkgcreate # makepkg /tmp/foobar-a.b.c-i686-1.tgz
(usually follow the suggestions to create symbolic links via the script and to NOT change ownership attributes of the files)
NOTE: outputting the built package to a different directory
# mv foobar-a.b.c-i686-1.tgz /your-directory-of-choice
(I use /root/slackpacks)
# cd /root/slackpacks # installpkg foobar-a.b.c-i686-1.tgz
Removing your installed package is as clean and easy as
# removepkg foobar-a.b.c-i686-1
Note: removepkg will not delete any files that you have modified.
Always clean up the package creation directory for use next time, even for recreating the same package again.
# cd /pkgcreate # rm -r *
For a much more thorough discussion of Slackware package creation (as well as a nice repository of pre-built Slackware packages, you may refer to the following pages over at http://linuxpackages.net:
Want to tip via bitcoin?
(address string below for double checking)
© 2012 by Andy Sy
Web Development / Rich Internet Applications (RIA) Development
|© 2003-2015 Neotitans Technologies Inc.||contact/hire us|