SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
this will create a package and install it for you. Optionally installing from source you can create a directory somewhere, say on the root of the drive at
/pkgs
then when you run go to compile
./configure --prefix=/pkgs/usr
make
make install
cd /pkgs
makepkg mypackage.tgz
Or if you just want to do your own package do like the second option above. Make a directory such as /pkgs then move whatever files you want into /pkgs. Then run makepkg from /pkgs
If you use checkinstall, removepkg will not work unless you go in and correct the slack-desc file and reinstall the package.
So, after using checkinstall, take the package it makes and put it ina temporary folder and do:
explodepkg PKG-name.tgz
Then go into the 'install' dir and open up slack-desc. Edit:
Study the linuxpackages howto for the details of the 11 critical lines in slack-desc.
Then do:
makepkg mynewpkg-version-arch-build.tgz
Be sure to remove the .tgz that checkinstall made there. Then, either run pkgtool and remove the original package that checkinstall installed, or simply remove the files that installpkg created in /var/log/packages and /var/log/scripts. Then install your new package.
When you compile from source you can usually specify an installation PREFIX= and install to a temp directory where you can create a package as above, except you'll need to create the install directory and also a valid slack-desc file as above.
A guy over on the Dropline forums made a script, createpkg, which will create a Slackware package from source. I've used it for a few things so far, and while it's still barebones, it's worked everytime.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.