Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to uninstall a RPM correctly (answering a query).

Discussion in 'General Discussion' started by martin MHC, Aug 26, 2017.

  1. martin MHC

    martin MHC Active Member

    Joined:
    Sep 14, 2016
    Messages:
    38
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I have an RPM that needs to be removed; but the process that I have read about how to remove it did not seem to work:

    Version: Copanel and WHM version 66.0.14
    Server access command line via Putty.

    RPM to remove: Webalizer stats.

    Emails appear regularly stating:
    The system detected problems with the following cPanel-provided files that the RPM controls:

    RPM Status Additional Information
    cpanel-webalizer-2.23_05-2.cp1136 Unnecessary

    If you did not make these changes intentionally, execute the following command as the root user to correct them:

    /usr/local/cpanel/scripts/check_cpanel_rpms --fix

    So; I run the command above in Putty.

    SIDE NOTE : If I move to the directory and run the command check_cpanel_rpms this is unrecognised; I have to be in the root and run the whole directory structure of the command above. Seems silly not being able to run the comand from the same directory.

    But the command response says the same thing, stating it's found cpanel-webalizer as a broken RPM.
     
  2. martin MHC

    martin MHC Active Member

    Joined:
    Sep 14, 2016
    Messages:
    38
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    HERE IS THE ANSWER:

    HOWEVER: Please note that the fix command DOES remove the detailed RPM, even after stating that the RPM is an issue, it then proceeds to remove it.

    I missed this vital nugget of text reading the Command line output, and proceeded to try and uninstall the RPM via Yum.

    If you do need to use Yum, the correct method is to do:

    :: yum remove <RPM name>

    such as yum remove cpanel-webalizer-2.23_05-2.cp1136
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  4. martin MHC

    martin MHC Active Member

    Joined:
    Sep 14, 2016
    Messages:
    38
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hello Michael,
    I had disabled Webalizer but then was getting persistent emails from the system tellingme it wasn't working so felt it best to uninstall it.

    Cheers
    Martin
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,165
    Likes Received:
    1,371
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It's possible something on your server was modifying the default Webalizer installation as provided by cPanel (through a post upcp hook or in /scripts/postupcp).

    Thank you.
     
Loading...

Share This Page