LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-05-2009, 02:22 PM   #1
bfull
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Rep: Reputation: 0
Can't perform rpm-qa within redhat 2.4.21-40.


Can't perform rpm-qa within redhat 2.4.21-40.ELsmp #1
 
Old 01-05-2009, 02:27 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, Welcome to LQ!

you want to query the database for a file?

rpm -qa (file name)

Code:
glenn@GamesBox:~$ rpm -qa unzip
unzip-5.52-6mdv2009.0
glenn@GamesBox:~$
Could you be more descriptive?

Maybe you just need a space in there to make it understand.

regards Glenn

p.s. LQ has a fantastic search function that could potentially save you precious time waiting for an answer.
 
Old 01-05-2009, 02:43 PM   #3
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
It is always a good way to "post your ERROR" generated on Standard Output. rpm -qa is to query all packages installed on your system.

like:

Code:
[root@wazirkutz ~]# rpm -qa | grep kernel
kernel-2.6.27.9-73.fc9.x86_64
kernel-firmware-2.6.27.9-73.fc9.noarch
kernel-headers-2.6.27.9-73.fc9.x86_64
kerneloops-0.12-1.fc9.x86_64

What's up on your Terminal when you tpye "rpm -qa " ?

cheers!!
 
Old 01-05-2009, 03:06 PM   #4
bfull
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
The system locks up when this is performed (rpm -qa)

Can't even CTRL C out of it....
 
Old 01-05-2009, 03:32 PM   #5
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
Does it work with other parameters?

like

Code:
rpm -i package-xyz ?
if no then probably your whole rpm package manager is corrupted..

if it does work with other parameters then It may depend on your sys configuration to complete your command.. Try being patient for a while as your system tries to generate list (if an old system)


Cheers!
 
Old 01-05-2009, 03:35 PM   #6
bfull
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
Hi, Welcome to LQ!

you want to query the database for a file?

rpm -qa (file name)

Code:
glenn@GamesBox:~$ rpm -qa unzip
unzip-5.52-6mdv2009.0
glenn@GamesBox:~$
Could you be more descriptive?

Maybe you just need a space in there to make it understand.

regards Glenn

p.s. LQ has a fantastic search function that could potentially save you precious time waiting for an answer.

There is nothing to add other than when this is perform RPM -QA the screen locks up can't even CTRL c or d out of it
 
Old 01-05-2009, 03:36 PM   #7
bfull
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by baig View Post
Does it work with other parameters?

like

Code:
rpm -i package-xyz ?
if no then probably your whole rpm package manager is corrupted..

if it does work with other parameters then It may depend on your sys configuration to complete your command.. Try being patient for a while as your system tries to generate list (if an old system)


Cheers!

There is nothing to add other than when this is perform RPM -QA the screen locks up can't even CTRL c or d out of it
 
Old 01-05-2009, 03:44 PM   #8
baig
Member
 
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Blog Entries: 3

Rep: Reputation: 38
I understand it locks when you type
Code:
rpm -qa

When your system is alive.. open a terminal be root.. and check if

Code:
rpm -i any_package_and_then_delete_if_not_needed:)
it works or not..
 
Old 01-05-2009, 03:46 PM   #9
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
OK, "rpm -qa" is not a full command, you need to add the package or file your looking for.

see if any system files are missing, using grep.

rpm -Va | grep miss

This will take a long time, if needed you can open a separate konsole or shell just for it and check it later.

upto 10 to 15 minutes, I guess.

Regards, Glenn

ps, I would also...

updatedb && rpm --rebuilddb as mentioned above.

ps again, also if it locks up, truely, then ctrl+alt+backspace to reload X without rebooting, or try ctrl+d

Last edited by GlennsPref; 01-05-2009 at 04:01 PM. Reason: rpm -Va | grep miss. Must have space bar between program command args and file-name
 
Old 01-05-2009, 03:56 PM   #10
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,458

Rep: Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941Reputation: 1941
Quote:
Originally Posted by bfull View Post
There is nothing to add other than when this is perform RPM -QA the screen locks up can't even CTRL c or d out of it
Well, if someone trying to help asks for a more detailed description of the problem, maybe there is something to add. I agree about the rpm database problem. Maybe there is a stale lock not reported as error message by kernel 2.4. You can try to remove the stale locks (if any) following the guidelines here and eventually rebuild the rpm database, as already suggested in previous posts.
 
Old 01-05-2009, 04:14 PM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
One last thing, if rpm -qa has no file-name, wouldn't it try to list all the packages installed on the system?

Anyway, try out some of those answers, then post back what you have found. It's good to get complete answers up here...

Where there's a will, there's a way!

cheers, Glenn

And, Thank you.
 
Old 01-06-2009, 07:43 AM   #12
bfull
LQ Newbie
 
Registered: Jan 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by baig View Post
I understand it locks when you type
Code:
rpm -qa

When your system is alive.. open a terminal be root.. and check if

Code:
rpm -i any_package_and_then_delete_if_not_needed:)
it works or not..



rpm --rebuilddb

Perform this step, but to no avail screen is still locked....
 
Old 01-06-2009, 11:41 PM   #13
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Hi, How long have you waited, silly question, just wondering.

You may need to re-install rpm.

see if any system files are missing, using grep.

rpm -Va | grep miss

This will take a long time, if needed you can open a separate konsole or shell just for it and check it later.

up to 10 to 15 minutes, I guess.

If that locks up too, then you may need to check the packages for rpm and any associated programs,

like locate wget, curl, but I'm thinking about my current kernel-2.6.28.x, Mandriva system and those programs may not be on your system.

I have not used a 2.4 kernel, or redhat but I do use rpm.

regards, Glenn
 
Old 01-07-2009, 12:58 AM   #14
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,627

Rep: Reputation: Disabled
Quote:
Originally Posted by bfull View Post
Can't perform rpm-qa within redhat 2.4.21-40.ELsmp #1
Have you mis typed or forgot the space between rpm and -qa?
If not then try this
Code:
rpm -qa | grep kernel
If you are not sure, just copy paste the command. If error still persists then tell what it is. And be patient. It can take some time.

Last edited by linuxlover.chaitanya; 01-07-2009 at 12:59 AM.
 
  


Reply

Tags
locks, system


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
RHEL 5: rpm --aid or rpmdb-redhat.rpm no longer supported mjcocat Linux - Enterprise 1 06-05-2008 08:41 PM
looking for qlib v2.5.6 rpm for redhat 7.3 spoter91 Linux - Software 0 03-22-2006 12:47 AM
Redhat RPM Question mehuljv Programming 8 12-21-2005 11:46 PM
Need RedHat RPM help... sucoyant Linux - Software 2 09-28-2003 09:39 PM
installing samba-3.0alpha24-1.i386.rpm into RedHat 8 and RedHat 9 Linh Linux - Newbie 2 06-04-2003 05:50 AM


All times are GMT -5. The time now is 09:17 PM.

Main Menu
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