Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
07-05-2003, 04:51 AM
|
#1
|
Member
Registered: Jun 2003
Distribution: Arch Linux i686
Posts: 67
Rep:
|
Question about rpm packages
I've installed an rpm package using the
rpm -i <package-name>
and I accendently removed it manually, so I want to reinstall it but I get the message
package already installed and if try to remove with
rpm -e <package-name>
i get the message package not installed.
My question is then, is there a way around this problem, i.e. how can I remove the rpm so my linux will know it is not there anymore so that I can reinstall it.
Regards
André Fettouhi
|
|
|
07-05-2003, 10:31 AM
|
#2
|
LQ Newbie
Registered: Jun 2003
Location: SC, USA
Distribution: Gentoo >=1.4
Posts: 13
Rep:
|
I would try rebuiding rpm's database, by:
# rm -f /var/lib/rpm/__db*
(to remove the old database files)
# rpm -v --rebuilddb
(to rebuild the database--which may take a long time)
If you get a message that the resource is in use, kill rpm first then go back through those two lines. Then:
$ rpm -q <package_name>
(make sure you are searching by package name and not by original installer name, e.g. do $ rpm -q evolution, not $ rpm -q evolution-1.2.2.i386.rpm.)
Then:
# rpm -e <package_name>
and
# rpm -i <package_name>
|
|
|
07-06-2003, 03:39 AM
|
#3
|
Member
Registered: Jun 2003
Distribution: Arch Linux i686
Posts: 67
Original Poster
Rep:
|
Thanks for the reply but how do I kill rpm because it says "resource busy".
Regards
André Fettouhi
|
|
|
07-06-2003, 11:18 AM
|
#4
|
LQ Newbie
Registered: Jun 2003
Location: SC, USA
Distribution: Gentoo >=1.4
Posts: 13
Rep:
|
If rpm is truly busy, then you can do:
$ su
# ps
# kill [ some-pid ]
When you input ps, it will give you a list of currently running executable processes, along with their PIDs or Process IDs. Find which one rpm is using, say it's 1234 in this case, and replace [ some-pid ] with 1234, e.g. :
# kill 1234
And then try rebuilding the database again...
|
|
|
07-06-2003, 02:28 PM
|
#5
|
Member
Registered: Jun 2003
Distribution: Arch Linux i686
Posts: 67
Original Poster
Rep:
|
Thanks again
I did as you said and killed rpm but when I rebuild the database I get a strange error message
error: db4 error(16) from dbenv->remove: Device or resource busy
Any idea what that means???
Kind Regards
André Fettouhi
|
|
|
07-07-2003, 06:55 AM
|
#7
|
Member
Registered: Jun 2003
Distribution: Arch Linux i686
Posts: 67
Original Poster
Rep:
|
Once again many thanks for your swift reply. The link helped, it's a bug in the rpm and should be fixed in the next release.
Kind Regards
André Fettouhi

|
|
|
All times are GMT -5. The time now is 01:30 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|