LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 04-29-2010, 08:35 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
How to recover from "slackpkg remove" followed by "installpkg"?


Hello

Intending to remove jre-6u16-i586-1 and install jre-6u18-i586-1 on Slackware 13.0 32-bit, I used
Code:
slackpkg remove jre-6u16-i586-1
installpkg jre-6u18-i586-1.txz
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
 
Old 04-29-2010, 08:44 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Install the old one again, then upgradepkg jre-6u18-i586-1.txz
 
Old 04-29-2010, 08:50 AM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
...or you'd be able to remove it using pkgtool, wouldn't you?
 
Old 04-29-2010, 08:57 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by Richard Cranium View Post
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"
 
Old 04-29-2010, 09:53 AM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I guess that I'm confused now.

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.
 
Old 04-29-2010, 10:54 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
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:
Code:
c@CW8:~$ ls -l /var/log/removed_scripts/jre-6u18*
-rwxr-xr-x 1 root root 1406 2010-02-18 13:58 /var/log/removed_scripts/jre-6u18-i586-1-upgraded-2010-03-09,20:28:23
c@CW8:~$ ls -l /var/log/packages/jre-6u16*
-rw-r--r-- 1 root root 34969 2010-03-09 20:28 /var/log/packages/jre-6u16-i586-1
So I'm OK to simply remove jre-6u16-i586-1 and install jdk-6u16-i586-1. Phew!

Thanks for helping
 
  


Reply

Tags
installpkg, slackpkg



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 can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
bash - how to remove lines from "FILE_A" which presents in "FILE_B" ? Vilmerok Programming 4 03-13-2009 04:27 AM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:12 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
Open Source Consulting | Domain Registration