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.
1. Download the right version of pkgtools from some mirror:
pkgtools-14.2-noarch-10.txz (for 14.2, obviously) or
pkgtools-15.0-noarch-31.txz (for -current, updated today)!!
2. Become root and go to the / directory
3. tar xaf <that pkgtools file>
(do not forget the directory in front of the filename)
This will leave an extra 'install' directory in the root, which you can remove with
4. rm -rf /install
Now you've got an "installpkg" script again, so now you can really install it with
5. installpkg <that pkgtools file>
which will actually not do much, but it will create the pkgtools entries in the installed packages and scripts dirs.
A more accepted solution would be to boot from the install media, follow the instructions in the paragraph starting with "In a pinch..", chroot to the crippled install and then run pkgtools from the install media.
ehartman's suggestion works great if you don't want to reboot. allend's suggestion would have you boot off the install media, which will put you to a mini Slackware install that will have pkgtools available. However, I don't think you'd be able to chroot, because then you'd be in your crippled install without pkgtools. Instead, you'd mount your root partition and run installpkg --root /location/to/mounted/root/partition /location/to/pkgtools-*.t?z to install it to a somewhere other than your current root.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.