LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-15-2016, 02:05 PM   #1
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Rep: Reputation: 15
Red face install pkgtool + mounted dvd + slackware 14


OK, I screwed up and deleted pkgtools from my install. I'd like to install it as root from the mounted slackware 14 dvd. I need command line help to get this done (I really don't want to do a fresh install right now). Thanks in advance!
 
Old 02-15-2016, 02:53 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,589

Rep: Reputation: Disabled
Lets' assume the DVD is mounted as /mnt, type as root:
Code:
installpkg /mnt/slackware/a/pkgtools*t?z

Last edited by Didier Spaier; 02-15-2016 at 06:09 PM.
 
Old 02-15-2016, 06:50 PM   #3
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,434

Rep: Reputation: Disabled
Edit: slow..

Last edited by orbea; 02-15-2016 at 06:52 PM.
 
Old 02-15-2016, 07:40 PM   #4
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Didier Spaier View Post
Lets' assume the DVD is mounted as /mnt, type as root:
Code:
installpkg /mnt/slackware/a/pkgtools*t?z
OK, I left some info out. I'm running out of disk space, slackpkg replied with md5sum errors, and check my mirror error message. I changed mirrors, which didn't help, then remembered low disk space can be the culprit (which it is). I managed to use removepkg to remove pkgtools, as i had figured slackpkg that uses installpkg removepkg which are a part of pkgtools (AFAIK) might help the issue.

As it stands now (to the best of my knowledge), I need to use "install" from the command line to install pkgtools with root permisions, and in the correct directory- not sure about this. Please, relevant, helpful replies- thanks.
 
Old 02-15-2016, 11:19 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,589

Rep: Reputation: Disabled
Quote:
Originally Posted by len View Post
Please, relevant, helpful replies- thanks.
Well, I have to admit that my first answer was wrong, as of course if you removed pkgtools you do not have the installpkg command anymore in your running system. This is my mistake and I duly apologize, Sir.

But installpkg is included in the installer and the package pkgtools is on the DVD. So, I suggest that you do this instead:
  • Insert the Slackware 14 DVD
  • Reboot to start the installer
  • When you will be logged in as "root", do not type "setup", but ...
  • Mount the DVD on /floppy
  • Mount the root partition of your installed system on /mnt
  • Type:
    Code:
    installpkg --root /mnt  /floppy/slackware/a/pkgtools*t?z
    umount /floppy
    umount /mnt
  • Remove the Slackware 14 DVD
  • Restart the computer
Quote:
to the best of my knowledge
You can enhance it doing some reading. Beyond reading the man pages (which is still the primary source of information to know how to use a command and what it does), a useful documentation for beginners and advanced users alike is available @ http://docs.slackware.com.

I hope this helps this time, if not feel free to come back.

Last edited by Didier Spaier; 02-16-2016 at 09:08 AM.
 
Old 02-16-2016, 01:51 AM   #6
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,350

Rep: Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408Reputation: 1408
Quote:
Originally Posted by len View Post
I'd like to install it as root from the mounted slackware 14 dvd.
To install from the mounted DVD, you could issue the following as root, adjusting "/mnt/slackware64/a/" to reflect the actual path to the mounted "a" series:

Code:
tar xf /mnt/slackware64/a/pkgtools*tgz sbin/installpkg -C /
installpkg /mnt/slackware64/a/pkgtools*tgz
Alternatively, use a copy of Pkgtools from a local mirror, by issuing the following as root:

Code:
wget -P /tmp http://mirrors.slackware.com/slackware/slackware64-14.0/slackware64/a/pkgtools-14.0-noarch-2.tgz
tar xf /tmp/pkgtools-14.0-noarch-2.tgz sbin/installpkg -C /
installpkg /tmp/pkgtools-14.0-noarch-2.tgz

Last edited by ruario; 02-19-2016 at 02:56 AM. Reason: Simplified first example and added another example using a mounted DVD; re-ordered to address actual request first
 
1 members found this post helpful.
Old 02-22-2016, 02:09 PM   #7
len
Member
 
Registered: Jun 2003
Distribution: slackware 14
Posts: 143

Original Poster
Rep: Reputation: 15
success

I used pkgtool with the install DVD. I had copied pkgtools*.tgz to a directory in my slackware partition. Pretty basic- read the README file, and mounted my slackware partition, and used the other option for the location of the copied program file. pkgtool installed it, and functionality is restored, but there are still some issues because I didn't use the "-preserve" function when I used removepkg initially.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Can I compile slackware-install-dvd.iso out of slackware-source-code-dvd.iso mshlinux Slackware 11 05-25-2013 02:40 PM
[SOLVED] install Slackware from pre-mounted dir hua Slackware 2 01-17-2012 03:55 PM
[SOLVED] The slackware package description in the install directory it isnt read by pkgtool Gerwar Linux - Software 2 05-29-2011 01:16 PM
pkgtool option bug, Slackware 13 ljb643 Slackware - Installation 7 10-21-2009 08:35 PM
where does pkgtool install slackware packages? salviadud Slackware 3 02-25-2005 12:58 PM

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

All times are GMT -5. The time now is 06:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration