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.

RPM Package Installer

Discussion in 'General Discussion' started by ThaRaven, Feb 18, 2006.

  1. ThaRaven

    ThaRaven Member

    Joined:
    Feb 18, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Make sure that your OS update tool (often yum or up2date) is working.
     
  3. ThaRaven

    ThaRaven Member

    Joined:
    Feb 18, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    I attempted to install the RPM I was going to install ("yum install mrtg") but I got the following errors:
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    What OS and version do you use? You're probably going to need to reset /etc/yum.conf back to the OS original.
     
  5. ThaRaven

    ThaRaven Member

    Joined:
    Feb 18, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    CentOS 4.2 i686
    WHM 10.8.0 cPanel 10.8.1-R113

    Hmmm.. :eek:
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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
     
  7. ThaRaven

    ThaRaven Member

    Joined:
    Feb 18, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    That fixed it, you've been very helpful thank you. :)
     
  8. ThaRaven

    ThaRaven Member

    Joined:
    Feb 18, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    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. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    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/
     
  10. host2b.com

    host2b.com Registered

    Joined:
    Feb 18, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1

    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. homeprimax

    homeprimax Member

    Joined:
    Sep 14, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I've encountered the same error when rpm installer was manually aborted. Try to run:
    If you will find yum or up2date process that is called from ./doinstallpackage, than kill it.
     
  12. WiroWaas

    WiroWaas Member

    Joined:
    Aug 11, 2006
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    I have the same problem. But I'm using Fedora Core 4, would you please tell me the correct, latest, repo file?
     
  13. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  14. asiams

    asiams Well-Known Member

    Joined:
    May 28, 2003
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hokkaido, JAPAN
    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.
     
Loading...

Share This Page