Hi All,
i am on CentOS 5.5.Can anyone share steps to creating local yum repository i did below steps but failed
First i copy whole all the dvd data to /var/ftp/pub/centos/
and create a .repo file in /etc/yum.repos.d/server.repo content is as follows
[root@Test ~]# cat /etc/yum.repos.d/Server.repo
[base]
name=CentOS-$releasever - Base
baseurl=file:///var/ftp/pub/centos/Centos/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
#released updates
#[update]
#name=CentOS-$releasever - Updates
#baseurl=http://192.168.*.*/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
#gpgcheck=1
#gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
[root@Test ~]# yum list
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
file:///var/ftp/pub/centos/Centos/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/var/ftp/pub/centos/Centos/repodata/repomd.xml'
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: base. Please verify its path and try again
Please let me know if anymore info is needed.