Yum on 1&1 Root Server

From ThePlaz.com

Revision as of 19:21, 15 December 2007 by ThePlaz (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I have a 1&1 root server. It's a shame they have the wrong yum configuration set up. Without fixing anything, you will get an error message "Error: Cannot open/read repomd.xml file for repository: updates-released" This is because they have set the yum path to point to an update server they own. However the server apperars to be down or out of date. After about an hour of searching, I found you can change the config path to a working server (in this case the official Fedora. repositories).

Set up Yum

Open up SSH as root > cd /etc > vi yum.conf type [Insert] to get into editing mode Make the bottom of the file look like this by changing both URLs to the Fedora server

[base]
name=Fedora Core $releasever - $basearch - Base
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/

Hit [Escape]:wq to save and exit Enjoy YUM! -ThePlaz http://theplaz.com

Config File After Changes

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

[base]
name=Fedora Core $releasever - $basearch - Base
# Changed by ThePlaz 12/15/2007
# baseurl=http://update.onlinehome-server.info/distribution/fedora/linux/core/$releasever/$basearch/os/
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os

[updates-released]
name=Fedora Core $releasever - $basearch - Released Updates
# Changed by ThePlaz 12/15/2007
# baseurl=http://update.onlinehome-server.info/distribution/fedora/linux/core/updates/$releasever/$basearch/
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/