Opened 15 years ago
Closed 9 years ago
#5271 closed defect (obsolete)
RHEL5 Yum repository incorrectly setup
Reported by: | James Lucas | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 3.0.8 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | other |
Description (last modified by )
The VirtualBox Yum virtualbox.repo file used the variable $releasever to select the appropriate repository location. $releasever is set to either 5Client or 5Server in Redhat Enterprise Linux 5, not the generic release value of 5
The directory layout for the RHEL repo should have symlinks created for 5Client and 5Server to 5 on the download site (http://download.virtualbox.org/virtualbox/rpm/rhel/) for it to work.
Also because the repository has not split up the repository with the base architecture (i586/x86_64) in the path the documentation should be updated on the download page to specify the architecture when installing through yum (eg, yum install VirtualBox on a 64bit machine will attempt to install the i386 version, you must specify yum install VirtualBox.x86_64 to install the 64bit version)
Attachments (1)
Change History (7)
comment:1 by , 15 years ago
comment:2 by , 15 years ago
The way I've seen it been done is to setup the base url to the repository to include the macro $basearch and split it up into two yum repos.
http://download.virtualbox.org/virtualbox/rpm/rhel/5/i386/{virtualbox.rpm, repodata/} http://download.virtualbox.org/virtualbox/rpm/rhel/5/x86_64/{virtualbox.rpm, repodata/}
(Simlink 5Client and 5Server to 5)
So the virtualbox.repo should be something like this (I also added the GPG key value in
[virtualbox] name=VirtualBox RHEL/CentOS $releasever - $basearch baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc
comment:3 by , 15 years ago
Should be fixed that way, I've updated the virtualbox.repo files as well. Please confirm.
comment:4 by , 15 years ago
Hi Frank, I can confirm that it is all working now. I have made a simple RHEL5/CENTOS5 rpm which will install the yum config and GPG key, i used it to deploy VirtualBox automatically in a kickstart this morning. The repo file is modified to point to the local copy of the GPG key ( in rpm version of virtualbox.repo have gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualbox). I'm releasing it here under MIT license for anyone to use.
Usage:
# To Install Virtualbox rpm -ivh http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox-repo-5-1.noarch.rpm yum install VirtualBox
comment:5 by , 15 years ago
Modified repo file for the rpm
[virtualbox] name=RHEL/CentOS-$releasever / $basearch - VirtualBox baseurl=http://download.virtualbox.org/virtualbox/rpm/rhel/$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-virtualbox
comment:6 by , 9 years ago
Description: | modified (diff) |
---|---|
Resolution: | → obsolete |
Status: | new → closed |
Thanks for this report. Actually I was hoping that the package for the current architecture is selected automatically. Isn't there any trick to make yum prefer the x86_64 version on a x86_64 host?