Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 4 of 4

This is a discussion on HOWTO: Install YUM on CentOS ver4.5 VPS in the VPS & Dedicated forum
Hi guys, I just thought of sharing this simple howto on installing YUM onto your VPS as it seems like it doesn't come installed by ...

  1. #1
    JPC Member PsyCHZZZ's Avatar
    Join Date
    Jul 2007
    Location
    Tokyo, Japan
    Posts
    9

    HOWTO: Install YUM on CentOS ver4.5 VPS

    Hi guys,

    I just thought of sharing this simple howto on installing YUM onto your VPS as it seems like it doesn't come installed by default.

    The repository and package version are the latest as of July 25th 2007 and are meant for CentOS 4.5.

    Just copy and paste the code below.

    Code:
    mkdir /usr/local/src/yum
    cd /usr/local/src/yum
    
    wget http://altruistic.lbl.gov/mirrors/centos/4.5/apt/i386/RPMS.os/python-sqlite-1.1.7-1.2.1.i386.rpm
    wget http://altruistic.lbl.gov/mirrors/centos/4.5/apt/i386/RPMS.os/python-elementtree-1.2.6-5.el4.centos.i386.rpm
    wget http://altruistic.lbl.gov/mirrors/centos/4.5/apt/i386/RPMS.os/python-urlgrabber-2.9.8-2.noarch.rpm
    wget http://altruistic.lbl.gov/mirrors/centos/4.5/apt/i386/RPMS.os/yum-2.4.3-3.el4.centos.noarch.rpm
    wget http://altruistic.lbl.gov/mirrors/centos/4.5/apt/i386/RPMS.os/sqlite-3.3.6-2.i386.rpm
    wget http://altruistic.lbl.gov/mirrors/centos/4.5/apt/i386/RPMS.os/sqlite-devel-3.3.6-2.i386.rpm
    
    rpm -Uvh *rpm
    
    yum update

  2. #2
    JPC Member
    Join Date
    Aug 2007
    Posts
    2

    I get the following error and google hasn't helped... ideas?

    when I do the yum update I get:

    [root@server yum]# yum update
    Setting up Update Process
    Setting up repositories
    Reading repository metadata in from local files
    rpmforge : 1/7710Traceback (most recent call last):
    File "/usr/bin/yum", line 29, in ?
    yummain.main(sys.argv[1:])
    File "/usr/share/yum-cli/yummain.py", line 97, in main
    result, resultmsgs = do()
    File "/usr/share/yum-cli/cli.py", line 477, in doCommands
    return self.updatePkgs()
    File "/usr/share/yum-cli/cli.py", line 955, in updatePkgs
    self.doRepoSetup()
    File "/usr/share/yum-cli/cli.py", line 75, in doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
    File "__init__.py", line 260, in doSackSetup
    File "repos.py", line 287, in populateSack
    File "sqlitecache.py", line 96, in getPrimary
    File "sqlitecache.py", line 89, in _getbase
    File "sqlitecache.py", line 359, in updateSqliteCache
    File "sqlitecache.py", line 251, in addPrimary
    File "sqlitecache.py", line 197, in insertHash
    File "sqlitecache.py", line 449, in values
    File "sqlitecache.py", line 441, in __getitem__
    File "mdparser.py", line 73, in __getitem__
    KeyError: 'epoch'
    [root@server yum]#


    Any thoughts?

    Marc

  3. #3
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    Hmm ... check your python version ? If it's old, download the newest stable source from python.org then compile & install.

  4. #4
    JPC Member
    Join Date
    Aug 2007
    Posts
    2

    not a bad python...

    wasn't the python version...

    seems the rpmforge.repo file isn't compatible to yum... ended up locating the rpm's I needed and manually installing them...

    Marc

Bookmarks

Posting Permissions

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