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
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.
01-05-2009, 02:22 PM
#1
LQ Newbie
Registered: Jan 2009
Posts: 5
Rep:
Can't perform rpm-qa within redhat 2.4.21-40.
Can't perform rpm-qa within redhat 2.4.21-40.ELsmp #1
01-05-2009, 02:27 PM
#2
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
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.
01-05-2009, 02:43 PM
#3
Member
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Rep:
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!!
01-05-2009, 03:06 PM
#4
LQ Newbie
Registered: Jan 2009
Posts: 5
Original Poster
Rep:
The system locks up when this is performed (rpm -qa)
Can't even CTRL C out of it....
01-05-2009, 03:32 PM
#5
Member
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Rep:
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!
01-05-2009, 03:35 PM
#6
LQ Newbie
Registered: Jan 2009
Posts: 5
Original Poster
Rep:
Quote:
Originally Posted by
GlennsPref
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
01-05-2009, 03:36 PM
#7
LQ Newbie
Registered: Jan 2009
Posts: 5
Original Poster
Rep:
Quote:
Originally Posted by
baig
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
01-05-2009, 03:44 PM
#8
Member
Registered: Nov 2008
Location: وادی ھنزہ
Distribution: Solaris 5.10, Debian Server 5.2, CentOS 5.6
Posts: 226
Rep:
I understand it locks when you type
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..
01-05-2009, 03:46 PM
#9
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
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 miss ing, 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
01-05-2009, 03:56 PM
#10
Moderator
Registered: Sep 2003
Location: Bologna
Distribution: OpenSUSE 12.1 CentOS 6.2
Posts: 8,998
Quote:
Originally Posted by
bfull
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.
01-05-2009, 04:14 PM
#11
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
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.
01-06-2009, 07:43 AM
#12
LQ Newbie
Registered: Jan 2009
Posts: 5
Original Poster
Rep:
Quote:
Originally Posted by
baig
I understand it locks when you type
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....
01-06-2009, 11:41 PM
#13
Senior Member
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia1 KDE openbox
Posts: 2,862
Rep:
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
01-07-2009, 12:58 AM
#14
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,560
Rep:
Quote:
Originally Posted by
bfull
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 .
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT -5. The time now is 03:18 PM .
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