Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-28-2009, 04:24 PM   #1
Gault LaRue
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?

Old 11-28-2009, 05:08 PM   #2
LQ Guru
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD, FreeBSD
Posts: 5,109

Rep: Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087Reputation: 1087
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, 07:13 PM   #3
Gault LaRue
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.

Old 11-28-2009, 07:29 PM   #4
Registered: May 2007
Posts: 508

Rep: Reputation: 189Reputation: 189
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 07:30 PM.
1 members found this post helpful.
Old 11-28-2009, 11:43 PM   #5
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
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-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.


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

All times are GMT -5. The time now is 08:04 AM.

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