LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2004, 10:50 PM   #1
xxxxxxxxx
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Can't remove RPM package


There is a package i can't remove using rpm. I accedently deleted the folder manually. So when i try to rpm -e, it gives me some errors.

# rpm -e j2re
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/rt.pack': No such file or direct ory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/jsse.pack': No such file or dire ctory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/charsets.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/ext/localedata.pack': No such fi le or directory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/plugin.pack': No such file or di rectory
touch: cannot touch `/usr/java/j2re1.4.2_01/javaws/javaws.pack': No such file or directory
touch: cannot touch `/usr/java/j2re1.4.2_01/lib/unpack': No such file or directo ry
error: %preun(j2re-1.4.2_01-fcs) scriptlet failed, exit status 1
 
Old 05-06-2004, 01:13 AM   #2
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Did you actually delete it, or did you move it to the Trash (default behaviour on KDE and GNOME)? If you just moved it to the trash, put it back. If you really deleted it, try reinstalling the package and then uninstalling it again.

Hope this helps.
 
Old 05-06-2004, 03:05 AM   #3
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: a few...
Posts: 654

Rep: Reputation: 32
also, force re-install it then uninstall it.
 
Old 05-06-2004, 07:32 PM   #4
xxxxxxxxx
LQ Newbie
 
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
its deleted it. when i try reinstalling, it installs another version of the package.
for example. "j2re". when i try to install it again. another version becomes "j2re2".
So now i have 2 j2re in my system. I can remove the j2re2 packages, but not eh original cause i deleted the folder. is there anyway around this so i can remove the package??
 
Old 05-07-2004, 06:12 AM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
You could remove the folder......

rm -rf /usr/java/*

Be careful with this. The -f switch is force and it will! GOODBYE!
 
Old 05-07-2004, 06:43 AM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
By removing the folder, you have essentially uninstalled the package by brute force. What you now want to do is remove the package from the package manager's list of installed files (because this package is for all intents and purposes, uninstalled), is that correct?

You might look at the solution in this thread, read through man rpm as that poster did, or check through some of the suggestions on this Repair an RPM database safely page.

And, don't do this again!!! Install and uninstall packages using your distribution's package manager-- that's what it's there for!

As an alternative, you could download and install the previous version manually and then uninstall it. That might work. Either way, you've made trouble for yourself that you really didn't need.
 
Old 05-07-2004, 06:54 AM   #7
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
too many posts too little coffee

Last edited by vectordrake; 05-07-2004 at 03:23 PM.
 
Old 05-07-2004, 06:58 AM   #8
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Did I miss the part where Opera (I assume you're talking about Opera) came into this? From the list of packages involved in the first post (not to mention subsequent posts), I thought that the app in question was Java.... accidentally post in the wrong thread, vectordrake?
 
Old 05-07-2004, 03:24 PM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
whoops. I guess that I gotta find the thread I was suppsed to post to. How embarassing.
 
  


Reply


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 remove an RPM package? sirius57 Fedora 4 11-30-2005 08:07 PM
how to remove a package abd_bela Debian 6 05-14-2005 12:01 PM
How do you uninstall/remove an rpm package? Plz Help! Gormless Linux - Newbie 3 10-23-2004 03:25 PM
Remove package from RPM database? breddy Linux - Newbie 1 07-21-2004 11:51 PM
can reinstall the rpm package without delete the rpm package eye Red Hat 1 10-20-2003 07:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:20 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