0% found this document useful (0 votes)
28 views2 pages

Howto

This document provides instructions for configuring YUM and software repositories for Fedora Core 6 in an OpenVZ virtual environment. Key steps include: 1. Editing /etc/yum.conf to exclude specific packages that are critical for OpenVZ functionality from being removed or replaced. 2. Re-enabling the central Fedora Core, Extras, and Updates repositories by editing configuration files in /etc/yum.repos.d/.

Uploaded by

SN85
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Howto

This document provides instructions for configuring YUM and software repositories for Fedora Core 6 in an OpenVZ virtual environment. Key steps include: 1. Editing /etc/yum.conf to exclude specific packages that are critical for OpenVZ functionality from being removed or replaced. 2. Re-enabling the central Fedora Core, Extras, and Updates repositories by editing configuration files in /etc/yum.repos.d/.

Uploaded by

SN85
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

HOWTO: Configure YUM and repositories for Fedora Core 6 The Fedora Core 6 template comes with all

the repositories disabled. If these are simply reenabled and a "yum update" performed then packages which are necessary for the functioning of the OpenVZ image will be removed. The specific known instance which triggered this was the replacement of the default vzdev rpm by the udev rpm which was in the fedora-updates.repo. The vzdev rpm is derived from the MAKEDEV srpm by swsoft/openvz and creates the specific /dev/tt*, /dev/urandom etc devices that are needed to allow the openvz-modified kernel talk to the hosting kernel. The excludes (besides udev and MAKEDEV) that I've included are pure guesswork and apeculation about other possibly modified components of the OS that may be necessary for OpenVZ functionality. 1. Edit /etc/yum.conf to exclude packages that may be critical
# vi /etc/yum.conf [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 metadata_expire=1800 exclude=udev kernel* mkinitrd module-init-tools glibc* gcc* MAKEDEV*

2. Re-enable the central fedora repositories # vi /etc/yum.repos.d/fedoracore.repo [core] name=Fedora Core $releasever - $basearch #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/ $releasever/$basearch/os/ mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpmgpg/RPM-GPG-KEY # vi /etc/yum.repos.d/fedora-extras.repo [extras] name=Fedora Extras $releasever - $basearch

#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/ $releasever/$basearch/ mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras$releasever enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras gpgcheck=1 # vi /etc/yum.repos.d/fedora-updates.repo [updates] name=Fedora Core $releasever - $basearch - Updates #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/update s/$releasever/$basearch/ mirrorlist=http://fedora.redhat.com/download/mirrors/updates-releasedfc$releasever enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora

You might also like