LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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



Reply
 
Search this Thread
Old 02-16-2005, 12:46 PM   #1
GlassEyeSlim
LQ Newbie
 
Registered: Feb 2005
Location: East Coast
Distribution: FC 3
Posts: 9

Rep: Reputation: 0
rpm Contradiction


Look's like a contridiction...

[root@localhost Desktop]# rpm -q gcc-c++-3.4.2-6.fc3.i386.rpm
package gcc-c++-3.4.2-6.fc3.i386.rpm is not installed
[root@localhost Desktop]# rpm -i gcc-c++-3.4.2-6.fc3.i386.rpm
warning: gcc-c++-3.4.2-6.fc3.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
package gcc-c++-3.4.2-6.fc3 is already installed
[root@localhost Desktop]#

What have I missed?

GES
 
Old 02-16-2005, 01:05 PM   #2
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
try

rpm -qa|grep gcc

regards
 
Old 02-16-2005, 06:32 PM   #3
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Yeah, you are querying it wrongly. masand's suggestion should work, but another way to do it is to run

$rpm -qa | grep -i gcc-c++

This will print out the version of gcc-c++ thats installed, or nothing if it isn't installed.
 
Old 02-16-2005, 07:08 PM   #4
GlassEyeSlim
LQ Newbie
 
Registered: Feb 2005
Location: East Coast
Distribution: FC 3
Posts: 9

Original Poster
Rep: Reputation: 0
Nearly Clear

Your recommendations do provide useful information. Please, indulge and explain the failure of

[root@localhost Desktop]# rpm -q gcc-c++-3.4.2-6.fc3.i386.rpm

Reading the man for rpm gives me the impression that the above should provide some useful info...

FYI...the -q option alone fails to function for any package listed by -qa...perhaps -q does not function properly alone?

GES
 
Old 02-16-2005, 10:04 PM   #5
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Thats because rpm is looking for a package with it's entire name called "gcc-c++-3.4.2-6.fc3.i386.rpm". The name of the package is actually "gcc-c++" and everything else in the rpm detail is just version info etc, so it shouldn't really be needed for querying the database of installed software.
 
Old 02-16-2005, 10:51 PM   #6
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
do

rpm -qa

this will give u the names of tha packages as they are known in the rpm database

you need to use these names

regards
 
Old 02-17-2005, 01:27 PM   #7
GlassEyeSlim
LQ Newbie
 
Registered: Feb 2005
Location: East Coast
Distribution: FC 3
Posts: 9

Original Poster
Rep: Reputation: 0
Solution

The solution is to query the package directly...

rpm -qp [options] PKG_NM

Thx for the help.

GES
 
Old 02-17-2005, 01:40 PM   #8
masand
Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
Re: Solution

Quote:
Originally posted by GlassEyeSlim
The solution is to query the package directly...

rpm -qp [options] PKG_NM

Thx for the help.

GES
as u have stated that package name should be there
but u need to know the correct package name i think


anyways

i prefer
rpm -qa|grep <package name initials>

regards
 
  


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
rpm -Uvh does not work with header & rpm files in /var/spool/up2date jd_no7 Linux - Software 1 05-17-2004 06:24 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 01:44 AM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 10:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM
Suggestions requested on upgrading a stock RH rpm with a third-party rpm obarney Linux - Software 5 05-21-2003 06:07 PM


All times are GMT -5. The time now is 08:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration