Results 1 to 8 of 8
Hello!,
I can't remove a rpm package with
Code:
rpm -e net-snmp
Nothing happened, and the process returns D status when i see with
Code:
ps aux | grep rpm
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-05-2013 #1Just Joined!
- Join Date
- Feb 2013
- Posts
- 4
I can't remove rpm package
Hello!,
I can't remove a rpm package withNothing happened, and the process returns D status when i see withCode:rpm -e net-snmp
. When i say "Nothing Happened", the terminal don't return any message, and not remove the package.Code:ps aux | grep rpm
What can I do to remove?
Ps: I work with Red Hat 9 shrikeLast edited by dougRamalho; 02-05-2013 at 11:29 AM.
- 02-05-2013 #2
Hi and welcome
First: Do not work with redhat 9.
This release is from 2003 and end-of-life, so there is no support anymore.
Other than that:
Can you see the whole rpm list, and if yes: is net-snmp in that list?
If rpm -qa doesnt return anything.. then this machine has the second big problemCode:rpm -qa rpm -qa | grep net-snmp
If net-snmp is not in the list, then the package has already been removed.
It is possible, that someone installed net-snmp without the use of rpm.
In that case, rpm tools will not help of course.You must always face the curtain with a bow.
- 02-05-2013 #3Just Joined!
- Join Date
- Feb 2013
- Posts
- 4
The packages listed in
are:Code:rm -qa | grep snmp
as net-snmp-tools is dependent of net-snmp, i need remove net-snmp.Code:net-snmp and net-snmp-tools.
Is there any way to remove manually?
Thanks for help me!
- 02-05-2013 #4
You did see the first point about redhat9 being deprecated, right?

rpm is the manual way, unless you want to manually delete package managed files. Which is not recommended.
What is the output, if you try this as root:
Edit:Code:rpm -e net-snmp net-snmp-tools
Directly after the rpm command, please post the output of
This should be a number (return code of rpm)Code:echo $?
You must always face the curtain with a bow.
- 02-05-2013 #5Just Joined!
- Join Date
- Feb 2013
- Posts
- 4
The biggest problem is when i try execute this command, nothing happens and the terminal do not back for line input.
- 02-05-2013 #6
Maybe the disk is full
Or are there errors?Code:df -h df -i
You could also get the pid of the rpm command and strace it.Code:dmesg
Or the other way around, start rpm via strace, aka
and go through the outputfiles "out.<pid>", looking for potential errors.Code:strace -o out -ff rpm -e net-snmp net-snmp-tools
But this is probably wasted effort anyway.
This system is ancient.
Maybe the hardware breaks or there is some misconfiguration, etc
My suggestion would be to backup configs, data and logs and then migrate to a newer system.You must always face the curtain with a bow.
- 02-05-2013 #7Just Joined!
- Join Date
- Feb 2013
- Posts
- 4
I realized that some commands has D status, when i execute
, some commands like:Code:ps aux | grep D
always stay with the status changed for D and nothing happens.Code:df -h, lsof and rpm -e
What this is error?
- 02-05-2013 #8
Look under "PROCESS STATE CODES" in
..which further indicates a hw error.Code:man ps
Do you see any errors in dmesg?You must always face the curtain with a bow.


Reply With Quote
