[SOLVED] How to recover from "slackpkg remove" followed by "installpkg"?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This seems to have been the wrong way to do it because, now trying to remove jre-6u18-i586-1
Code:
removepkg jre-6u18-i586-1.txz
ls: cannot access /var/log/packages/jre-6u18-i586-1*: No such file or directory
No such package: /var/log/packages/jre-6u18-i586-1. Can't remove.
ls -l /var/log/packages/jre*
-rw-r--r-- 1 root root 35K 2010-03-09 20:28 /var/log/packages/jre-6u16-i586-1
What was wrong with what I did and how can I clean up?
Best
Charles
Last edited by catkin; 04-29-2010 at 08:36 AM.
Reason: change alias to ls -l
Install the old one again, then upgradepkg jre-6u18-i586-1.txz
Thanks Mr Head
Does it matter which command I use to install jre-6u16-i586-1 again?
Am I right to think you are basing your advice on detailed knowledge of these jre-6u* packages, including knowing that jre-6u16-i586-1 and jre-6u18-i586-1 install the files with the same names?
I actually want to replace jre-6u18-i586-1 with jdk-6u16-i586-1, following our advice 20 hours ago: "Plus the JDK comes with a copy of the JRE; there's really no good reason to have both".
For future reference, do you know what was wrong with the way I removed jre-6u16-i586-1 and installed jre-6u18-i586-1?
Last edited by catkin; 04-29-2010 at 08:59 AM.
Reason: Changed "the same files" to "files with the same names"
I assumed that the removepkg error was generated by slackpkg. If you ran the slackpkg command first and then ran removepkg yourself, then the error makes sense: slackpkg removed it already so when you tried to do so, removepkg couldn't find it.
In any case, if you have the old package handy, an "installpkg /full/path/unless/it/is/in/./jre-6u16-i586-1.txz" followed by "upgradepkg jre-6u16-i586-1%jdk-6u16-i586-1.txz" (I'm a bit iffy on the upgradepkg syntax; you should check.) should do the trick.
Mystery solved! It turns out that a routine slackpkg update and slackpkg upgrade-all on 9mar10 removed jre-6u18-i586-1 and installed jre-6u16-i586-1. Here's the evidence:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.