Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Posts
    4

    I can't remove rpm package


    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
    . When i say "Nothing Happened", the terminal don't return any message, and not remove the package.

    What can I do to remove?

    Ps: I work with Red Hat 9 shrike
    Last edited by dougRamalho; 02-05-2013 at 12:29 PM.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,425
    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?
    Code:
    rpm -qa 
    rpm -qa | grep net-snmp
    If rpm -qa doesnt return anything.. then this machine has the second big problem
    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.

  3. #3
    Just Joined!
    Join Date
    Feb 2013
    Posts
    4
    The packages listed in
    Code:
    rm -qa | grep snmp
    are:
    Code:
    net-snmp and net-snmp-tools.
    as net-snmp-tools is dependent of net-snmp, i need remove net-snmp.

    Is there any way to remove manually?

    Thanks for help me!

  4. $spacer_open
    $spacer_close
  5. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,425
    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:
    Code:
    rpm -e net-snmp net-snmp-tools
    Edit:
    Directly after the rpm command, please post the output of
    Code:
    echo $?
    This should be a number (return code of rpm)
    You must always face the curtain with a bow.

  6. #5
    Just 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.

  7. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,425
    Maybe the disk is full
    Code:
    df -h
    df -i
    Or are there errors?
    Code:
    dmesg
    You could also get the pid of the rpm command and strace it.
    Or the other way around, start rpm via strace, aka
    Code:
    strace -o out -ff rpm -e net-snmp net-snmp-tools
    and go through the outputfiles "out.<pid>", looking for potential errors.


    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.

  8. #7
    Just Joined!
    Join Date
    Feb 2013
    Posts
    4
    I realized that some commands has D status, when i execute
    Code:
    ps aux | grep D
    , some commands like:
    Code:
    df -h, lsof and rpm -e
    always stay with the status changed for D and nothing happens.

    What this is error?

  9. #8
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,425
    Look under "PROCESS STATE CODES" in
    Code:
    man ps
    ..which further indicates a hw error.

    Do you see any errors in dmesg?
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •