LinuxQuestions.org
Help answer threads with 0 replies.
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 12-30-2004, 09:36 PM   #1
BBB
Member
 
Registered: Aug 2004
Location: sweden
Distribution: Slackware 10.2 and Win2k
Posts: 127

Rep: Reputation: 15
What have i done! :( (removed pkgtools)


Please, stop laughing!
After a complete update of my slackware system with swaret (set to current) "pkgtool" wouldn't
start (ive had this problem before and fixed it by reinstalling pkgtools with swaret) so i tried
"swaret --remove pkgtool" and that worked, and when i then tried
"swaret --update && swaret install pkgtool" it sed that swaret needed pkgtools to install stuff :/ .
I searched for pkgtools on slackware.com and found the package.... in .tgz format :S .
So i can't install pkgtools since i NEED pkgtools to install pkgtools.... :S
What now?
 
Old 12-30-2004, 09:52 PM   #2
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
sorry, but does...
Code:
#installpkg
Not work?

And if not...

Boot off the 2nd slackware CD,
mount your filesystem,
chroot into your filesystem,
installpkg the package,
reboot into system.

done.
 
Old 12-30-2004, 09:53 PM   #3
BBB
Member
 
Registered: Aug 2004
Location: sweden
Distribution: Slackware 10.2 and Win2k
Posts: 127

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by slackMeUp
sorry, but does...
Code:
#installpkg
Not work?

Nope

Quote:
Originally posted by slackMeUp

And if not...

Boot off the 2nd slackware CD,
mount your filesystem,
chroot into your filesystem,
installpkg the package,
reboot into system.

done. [/B]
2nd Slackware disc? I only have one :S .
 
Old 12-30-2004, 09:59 PM   #4
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
If the previous suggestion doesn't work out for you, but it should - download the source
from ftp, unzip, and in the sbin directory is the installpkg script. might have to chmod it,
but its there.

just a suggestion,
-tw
 
Old 12-30-2004, 10:01 PM   #5
BBB
Member
 
Registered: Aug 2004
Location: sweden
Distribution: Slackware 10.2 and Win2k
Posts: 127

Original Poster
Rep: Reputation: 15
Okay ill try that after new year, got to go now. Thx for the help.
 
Old 12-30-2004, 10:53 PM   #6
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,263

Rep: Reputation: 54
I think you will have to extract the binary from the package and manually install it by moving it and its component parts to /sbin
 
Old 12-30-2004, 11:00 PM   #7
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Don't feel bad, I had some linking issues withe glibc, so I removed that and gcc. This also removed my *entire* /usr/bin directory.

Thank god for backups.
 
Old 12-31-2004, 12:07 AM   #8
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
If you have the old pkgtools .tgz, couldn't you just untar it in the root directory? This would amount to a manual install. (Unless you cleaned it up, you should be able to find it in /var/log/removed_packages.)

Code:
cd /
tar -xzvf /var/log/removed_packages/pkgtools*.tgz
Then you could use installpkg so that the package info is placed in /var/log/packages and the script (if there is one) is run.

Garry

Last edited by major.tom; 12-31-2004 at 12:41 PM.
 
Old 12-31-2004, 03:06 AM   #9
beanerjo
Member
 
Registered: Aug 2004
Location: New Zealand
Distribution: Slackware
Posts: 40

Rep: Reputation: 15
Good idea, major.tom. That's basically what I would do. The only thing is that the file /var/log/removed_packages/pkgtools-... contains only the list of files, so we need to do
Code:
cd /
tar xvfz /mnt/cdrom/slackware/a/pkgtools-*.tgz
Then we can use installpkg to install pkgtools to finish.
 
Old 12-31-2004, 12:55 PM   #10
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
Oops. Good catch, beanerjo.

Obviously I misunderstood how those folders are used. I thought it just archived the .tgz's. Now that I look, I see you're absolutely correct.

Garry
 
  


Reply

Tags
imp


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
pkgtools Nightmare HELP!!!!!!!!!! waterox Slackware 4 09-12-2005 12:46 PM
missing pkgtools chopp Slackware 7 02-05-2005 12:41 AM
Forgot to install pkgtools? jrbush82 Slackware 3 10-27-2004 04:31 AM
Removed files-where have they gone!!!???? the_rydster Linux - General 2 11-13-2003 01:13 PM
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 08:41 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