LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 09:35 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
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 09:36 AM. Reason: change alias to ls -l
 
Old 04-29-2010, 09:44 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,578

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

Rep: Reputation: 1047Reputation: 1047Reputation: 1047Reputation: 1047Reputation: 1047Reputation: 1047Reputation: 1047Reputation: 1047
...or you'd be able to remove it using pkgtool, wouldn't you?
 
Old 04-29-2010, 09:57 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Original Poster
Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
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 09:59 AM. Reason: Changed "the same files" to "files with the same names"
 
Old 04-29-2010, 10:53 AM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: Carrollton, Texas
Distribution: Slackware64 14.1
Posts: 1,578

Rep: Reputation: 468Reputation: 468Reputation: 468Reputation: 468Reputation: 468
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, 11:54 AM   #6
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Original Poster
Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
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


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


All times are GMT -5. The time now is 06:35 AM.

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