Results 1 to 14 of 14

Thread: RPM Package Installer

  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    5

    Default RPM Package Installer

    My RPM Package Installer has no packages in the menu (it did, just a few days ago as a matter of fact but now for some reason there's nothing there). I tried to rebuild the RPM database, it said complete but there was no change. Anyone have a solution?

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    Make sure that your OS update tool (often yum or up2date) is working.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    5

    Default

    I attempted to install the RPM I was going to install ("yum install mrtg") but I got the following errors:
    Cannot find a valid baseurl for repo: update
    Error: Cannot find a valid baseurl for repo: update

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    What OS and version do you use? You're probably going to need to reset /etc/yum.conf back to the OS original.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    Member
    Join Date
    Feb 2006
    Posts
    5

    Default

    Quote Originally Posted by chirpy
    What OS and version do you use?
    CentOS 4.2 i686
    WHM 10.8.0 cPanel 10.8.1-R113

    Quote Originally Posted by chirpy
    You're probably going to need to reset /etc/yum.conf back to the OS original.
    Hmmm..

  6. #6
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    That's probably because CentOS upgraded the yum repo with an incorrect update and then sent out another one. thought it might catch a few people. To fix, replace /etc/yum.repos.d/CentOS-Base.repo with:

    Code:
    # CentOS-Base.repo
    #
    # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the 
    # remarked out baseurl= line instead.
    #
    #
    
    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #released updates 
    [update]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    That's the correct, latest, repo file for CentOS v4.2
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  7. #7
    Member
    Join Date
    Feb 2006
    Posts
    5

    Default

    That fixed it, you've been very helpful thank you.

  8. #8
    Member
    Join Date
    Feb 2006
    Posts
    5

    Default

    If I may bother you again, I installed the RPM I was looking for (Multi Router Traffic Grapher), but I'm not sure how to activate it, I've done a "locate *mrtg*" but it hasn't found anything. I'd be grateful if you could offer help with this.

  9. #9
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    After installation you actually have to configure mrtg. The files won't be in locate yet because the database it uses is only updated once a day during the daily cron jobs. The directory where the mrtg files are created is:

    /var/www/mrtg/

    The configuration files are:

    /etc/mrtg/

    There are a whole load of pre-built configurations that you can use linked to from the MRTG site and through general web searching:
    http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  10. #10
    Registered User
    Join Date
    Feb 2006
    Posts
    1

    Default

    Quote Originally Posted by chirpy
    That's probably because CentOS upgraded the yum repo with an incorrect update and then sent out another one. thought it might catch a few people. To fix, replace /etc/yum.repos.d/CentOS-Base.repo with:

    ....

    [That's the correct, latest, repo file for CentOS v4.2

    Hi, i had the same problem, i do this and now in whm i saw all rpm packages.

    There is a problem, when i do in ssh yum install mrtg i recive this...

    Error: Bad repository file ///etc/yum.repos.d/CentOS-Base.repo.
    Setting up Install Process
    Setting up repositories
    No Repositories Available to Set Up
    Reading repository metadata in from local files
    Excluding Packages in global exclude list
    Finished
    Parsing package install arguments
    No Match for argument: mrtg
    Nothing to do

    Why??

  11. #11
    Member
    Join Date
    Sep 2004
    Posts
    15

    Default

    I've encountered the same error when rpm installer was manually aborted. Try to run:
    ps -Afw | grep install
    If you will find yum or up2date process that is called from ./doinstallpackage, than kill it.

  12. #12
    Member
    Join Date
    Aug 2006
    Posts
    12

    Default

    Quote Originally Posted by chirpy
    That's probably because CentOS upgraded the yum repo with an incorrect update and then sent out another one. thought it might catch a few people. To fix, replace /etc/yum.repos.d/CentOS-Base.repo with:

    Code:
    # CentOS-Base.repo
    #
    # This file uses a new mirrorlist system developed by Lance Davis for CentOS.
    # The mirror system uses the connecting IP address of the client and the
    # update status of each mirror to pick mirrors that are updated to and
    # geographically close to the client.  You should use this for CentOS updates
    # unless you are manually picking other mirrors.
    #
    # If the mirrorlist= does not work for you, as a fall back you can try the 
    # remarked out baseurl= line instead.
    #
    #
    
    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #released updates 
    [update]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    
    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
    That's the correct, latest, repo file for CentOS v4.2
    I have the same problem. But I'm using Fedora Core 4, would you please tell me the correct, latest, repo file?

  13. #13
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,496

    Default

    Now that FC4 is no longer supported, you'll need to use FedoraLegacy:
    http://www.fedoraproject.org/wiki/Legacy/YumFC4Detailed

    (link wasn't working too well when I tried it)
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  14. #14
    Member
    Join Date
    May 2003
    Location
    Hokkaido, JAPAN
    Posts
    91

    Default Yum Repo File missing for CentOS 4.8

    Hello Chirpy,

    Where can I find my mission repo file for CentOS 4.8? Can the posted 4.2 work ok with 4.8?

    Thank you.

Similar Threads

  1. RPM Package Installer
    By selbach in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 05-08-2006, 04:09 PM
  2. Don't understand RPM Package Installer
    By JeremyB in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 01-31-2006, 05:49 AM
  3. RPM Package Installer blank
    By blweb in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 02-23-2005, 09:06 AM
  4. RPM Package Installer problem
    By phuner in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 06-07-2004, 01:07 AM
  5. RPM Package Installer
    By HostDime in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 08-03-2003, 03:01 AM