![]() |
| Home About Us Services Clients Resources Blog Careers Orderbox™ | contact us Site map links |
A Short and Sweet Slackware Package Creation Tutorialor... '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. Package CreationStep 1. Create a work directory for package creation# mkdir -p /pkgcreate/usr/localStep 2. Unpack the source distribution, configure it, then compile. # tar -zxvf foobar-a.b.c.tar.gz # cd foobar-a.b.c # ./configure --prefix=/usr/local # make3. 'make install' the created files to the package creation directory by using one (or all) of the 'make install' variables shown below.
# 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
Step 4. Build the tarball package
# 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
(e.g. # mv foobar-a.b.c-i686-1.tgz /your-directory-of-choice (I use /root/slackpacks) Package Installation# cd /root/slackpacks # installpkg foobar-a.b.c-i686-1.tgz Package RemovalRemoving 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. TipAlways clean up the package creation directory for use next time, even for recreating the same package again. # cd /pkgcreate # rm -r * Other ResourcesFor 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:
© 2012 by Andy Sy |
|
Web Development / Rich Internet Applications (RIA) Development
Programming LanguagesPlatformsDatabase Development |
| © 2003-2012 Neotitans Technologies Inc. | contact/hire us |