LinuxQuestions.org
Review your favorite Linux distribution.
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 08-22-2005, 04:15 AM   #1
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Rep: Reputation: 15
problem with rpm command


When i try to install anything using rpm -ivh i get the following error.

[root@localhost Linux_rpms]# rpm -ivh **************.rpm
dbiTagsInit: unrecognized tag name: "Sha1header" ignored
dbiTagsInit: unrecognized tag name: "Pubkeys" ignored
error: unrecognized db option: "tmpdir" ignored
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /var/lib/rpm

[root@localhost Linux_rpms]# rpm -qa mplayer
rpm: one type of query/verify may be performed at a time

Can anyone help me in this regard. Plz help me. I'm not able to install anything becoz of this
 
Old 08-22-2005, 04:32 AM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
rpm -qa gives a list of all installed rpms. You should either do

#rpm -q mplayer (to see which mplayer is installed)
#rpm -qa | grep mplayer (to see all rpms with mplayer in their name installed)

as for the erros generated, was the rpm made for your distro?
 
Old 08-22-2005, 08:37 AM   #3
saipraveen
Member
 
Registered: Jun 2005
Location: Hyderabad
Posts: 35

Original Poster
Rep: Reputation: 15
I have already told that 'no rpm' is getting installed. Regarding rpm -qa , i tried
rpm -q mplayer and other things also. But it gives the same error.
 
Old 08-22-2005, 03:51 PM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
The reason I asked if you were trying to install an rpm that was not made for your system/distro is because it might expect to find things that you don't have or look in the wrong places.

It looks like you may have a problem with your rpm database. Try rebuilding it with 'rpm --rebuilddb'
 
  


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 can I get the rpm command and rpm build command on my Debian box? abefroman Debian 6 11-28-2005 12:38 PM
Problem using rpm command thorney Linux - Newbie 1 11-24-2005 06:50 PM
rpm -q command praveenv Linux - Newbie 2 09-08-2004 04:41 AM
command line rpm dependency problem rolandkirk55 Linux - Software 0 09-07-2004 08:14 PM
rpm command problem lf412 Linux - Newbie 4 02-26-2003 08:52 PM

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

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