LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Accidentally used installpkg instead of upgradepkg; any recourse? (https://www.linuxquestions.org/questions/slackware-14/accidentally-used-installpkg-instead-of-upgradepkg%3B-any-recourse-772168/)

Gault LaRue 11-28-2009 04:24 PM

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

hitest 11-28-2009 05:08 PM

You could use pkgtool to remove the unwanted patches and then use slackpkg to install, upgrade your unit.

Gault LaRue 11-28-2009 07:13 PM

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.

the3dfxdude 11-28-2009 07:29 PM

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

fsbooks 11-28-2009 11:43 PM

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.


All times are GMT -5. The time now is 04:03 PM.