I have set up a local filesystem repo thus:
# cat /etc/yum.repos.d/LocalFiles.repo
# LocalFiles.repo
#
# This repo is used with rpms contained in a local filesystem repo
# created with createrepo. You can use this repo and yum to install
# items directly off the local disk.
#
# To use this repo with the other repos:
# yum --enablerepo=localfiles yum --nogpgcheck <yum command>
#
# or to ONLY this repo, do this:
#
# yum --disablerepo=\* --enablerepo=localfiles <yum command>
[localfiles]
name=CentOS-$releasever - Local Files
baseurl=file:///root/RPMS/repos/
enabled=0
gpgcheck=0
In /root/RPMS/repos/ I have this:
ll /root/RPMS/repos/
total 8
drwxr-xr-x. 2 root root 4096 Apr 21 16:17 Packages
drwxr-xr-x. 2 root root 4096 Apr 21 15:57 repodata
And in /root/RPMS/repos/Packages I have this:
ll /root/RPMS/repos/Packages/http*
-rw-rw-r--. 1 root root 1151252 Apr 21 16:15
/root/RPMS/repos/Packages/httpd-2.4.9-1.el6.x86_64.rpm
-rw-rw-r--. 1 root root 3415444 Apr 21 16:15
/root/RPMS/repos/Packages/httpd-debuginfo-2.4.9-1.el6.x86_64.rpm
-rw-rw-r--. 1 root root 186000 Apr 21 16:15
/root/RPMS/repos/Packages/httpd-devel-2.4.9-1.el6.x86_64.rpm
-rw-rw-r--. 1 root root 3300912 Apr 21 16:15
/root/RPMS/repos/Packages/httpd-manual-2.4.9-1.el6.x86_64.rpm
-rw-rw-r--. 1 root root 69784 Apr 21 16:15
/root/RPMS/repos/Packages/httpd-tools-2.4.9-1.el6.x86_64.rpm
Yet when I try to install or upgrade using yum I get a download error:
# yum --enablerepo=localfiles --nogpgcheck update httpd
Loaded plugins: downloadonly, fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
* Webmin: download.webmin.com
* base: less.cogeco.net
* epel: mirror.steadfast.net
* extras: centos.mirror.ca.planethoster.net
* rpmforge: repoforge.mirror.constant.com
* updates: centos.mirror.rafal.ca
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.x86_64 0:2.2.15-30.el6.centos will be updated
--> Processing Dependency: httpd-mmn = 20051115 for package:
1:mod_ssl-2.2.15-30.el6.centos.x86_64
--> Processing Dependency: httpd = 2.2.15-30.el6.centos for package:
1:mod_ssl-2.2.15-30.el6.centos.x86_64
---> Package httpd.x86_64 0:2.4.9-1.el6 will be an update
--> Running transaction check
---> Package mod_ssl.x86_64 1:2.2.15-30.el6.centos will be updated
---> Package mod_ssl.x86_64 1:2.4.9-1.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================
Package Arch Version Repository Size
===============================================================================Updating:
httpd x86_64 2.4.9-1.el6 localfiles 1.1 M
Updating for dependencies:
mod_ssl x86_64 1:2.4.9-1.el6 localfiles 79 k
Transaction Summary
===============================================================================Upgrade
2 Package(s)
Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
Error Downloading Packages:
httpd-2.4.9-1.el6.x86_64: failure: Packages/httpd-2.4.9-1.el6.x86_64.rpm
from localfiles: [Errno 256] No more mirrors to try.
1:mod_ssl-2.4.9-1.el6.x86_64: failure:
Packages/mod_ssl-2.4.9-1.el6.x86_64.rpm from localfiles: [Errno 256] No more
mirrors to try.
Any ideas on what I am doing wrong?
--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB at Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3