LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-31-2020, 05:34 AM   #1
Dober
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Rep: Reputation: 0
Install pkgtools


While upgrading packages, removed pkgtools.

Is there a way to install subj?
 
Old 03-31-2020, 05:57 AM   #2
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
Hmmm Maybe the install media has that.
 
Old 03-31-2020, 06:05 AM   #3
Dober
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 0
I have file pkgtools-15.0-noarch-30.txz, but I can't call installpkg: Command not found
 
Old 03-31-2020, 06:08 AM   #4
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Dober View Post
While upgrading packages, removed pkgtools.

Is there a way to install subj?
The short and dirty way:
Code:
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.

Last edited by ehartman; 03-31-2020 at 06:09 AM.
 
2 members found this post helpful.
Old 03-31-2020, 06:23 AM   #5
Dober
LQ Newbie
 
Registered: Apr 2009
Posts: 6

Original Poster
Rep: Reputation: 0
ehartman, thanks! You saved me! :-D
 
Old 03-31-2020, 07:24 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
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.
 
Old 03-31-2020, 10:57 AM   #7
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Curious: pkgtools Directories and SymlLnks with pkgtools-15.0-noarch-20.txz on Thu Jun 21 22:58:42 UTC 2018 kjhambrick Slackware 4 06-23-2018 01:16 AM
[SOLVED] how do pkgtools work; install / remove files/folders dh2k Slackware 3 03-18-2011 01:49 PM
What have i done! :( (removed pkgtools) BBB Slackware 9 12-31-2004 12:55 PM
Forgot to install pkgtools? jrbush82 Slackware 3 10-27-2004 04:31 AM
pkgtools problem??? brbrow Slackware 2 09-10-2003 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration