LinuxQuestions.org
Visit Jeremy's Blog.
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 11-28-2009, 05:24 PM   #1
Gault LaRue
Member
 
Registered: Jul 2005
Location: Columbia, MD
Distribution: Slackware 10.2 / 11.0 / 12.0
Posts: 38

Rep: Reputation: 15
Accidentally used installpkg instead of upgradepkg; any recourse?


<britney>Oops, I did it again</britney>

Like the title says, I accidentally used installpkg to put a bunch of patches onto my system, instead of using upgradepkg. Is there any clean way of undoing this, or would it be less trouble just to live with it this time?

Thanks,
GL
 
Old 11-28-2009, 06:08 PM   #2
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,280

Rep: Reputation: 588Reputation: 588Reputation: 588Reputation: 588Reputation: 588Reputation: 588
You could use pkgtool to remove the unwanted patches and then use slackpkg to install, upgrade your unit.
 
1 members found this post helpful.
Old 11-28-2009, 08:13 PM   #3
Gault LaRue
Member
 
Registered: Jul 2005
Location: Columbia, MD
Distribution: Slackware 10.2 / 11.0 / 12.0
Posts: 38

Original Poster
Rep: Reputation: 15
I think I'll give it a shot. I've always managed Slackware systems manually in the past, downloading and upgrading in two separate steps. The "slackpkg upgrade" command looks like what I want.

Thanks,
GL.
 
Old 11-28-2009, 08:29 PM   #4
the3dfxdude
Member
 
Registered: May 2007
Posts: 332

Rep: Reputation: 100Reputation: 100
There isn't really a need to undo it, just do a removepkg using the full package name of the old version which includes the version, arch, and revision:

$ removepkg fullpackage-name-2.4-i686-1

Look in /var/log/packages to figure out what names you need to use.

If you feel that the patch package wasn't installed cleanly, then reinstall again:

$ upgradepkg --reinstall patch-2.5-i686-1.txz

Last edited by the3dfxdude; 11-28-2009 at 08:30 PM.
 
1 members found this post helpful.
Old 11-29-2009, 12:43 AM   #5
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 449

Rep: Reputation: 31
There are times when it might be necessary to have two versions of one package. I have at times found it necessary to support a particular software version that depends on old libraries, but need the new package for other software. It does not always work to ln -s ...so.n ../so.(n-1). (did I actually tell people I do that?). In any case, an install over an upgrade can be cleaned up if you want and have the time, but is not usually a disaster. The next upgrade should recover any wasted disk space.
 
  


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
how to use upgradepkg somae Slackware 4 06-07-2007 07:04 AM
upgradepkg -- what is it used for? arcanex Slackware 3 04-06-2007 03:46 AM
Someone hacked my machine - any recourse? BrianK Linux - Security 9 05-09-2005 10:43 AM
How to use rsync and upgradepkg... halo14 Slackware 5 01-04-2005 08:41 PM
upgradepkg on mozilla ivansv Slackware 2 12-29-2003 11:51 AM


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