hi! I tried to create a local repository for rhce practice. i issued the command "createrepo /var/ftp/pub/gls/RPMS" where all the .rpm files are copied into. The repo was create succesfully and i edited the server1.repo file which i created manually in /etc/yum.repos.d folder.
After changing the path in server1.repo to point to the loc of the .rpm files, the command yum clean all and yum update were run, but the message below was prompted. What has been configured wrongly? Please advise. Thanks.
[root@localhost RPMS]# pwd
/var/ftp/pub/gls/RPMS
[root@localhost RPMS]# yum clean all
Loading "security" plugin
Loading "rhnplugin" plugin
Repository rhel-debuginfo is listed more than once in the configuration
Cleaning up Everything
[root@localhost RPMS]# yum update
Loading "security" plugin
Loading "rhnplugin" plugin
Repository rhel-debuginfo is listed more than once in the configuration
This system is not registered with RHN.
RHN support will be disabled.
http://192.168.1.106/var/ftp/pub/gls...ta/repomd.xml: [Errno 4] IOError: <urlopen error (111, 'Connection refused')>
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: RPMS. Please verify its path and try again
[root@localhost RPMS]#
below are some of the info.
-----------------------------
Location of repomd.xml
[root@localhost repodata]# ls
comps-rhel5-server-supplementary.xml other.xml.gz repomd.xml
filelists.xml.gz primary.xml.gz TRANS.TBL
[root@localhost repodata]# pwd
/var/ftp/pub/gls/RPMS/repodata
[root@localhost repodata]#
--------------------------------------
Location of server1.repo and the content, the ip 192.168.1.106 is the repo server ip.
[root@localhost yum.repos.d]# pwd
/etc/yum.repos.d
[root@localhost yum.repos.d]# ls
rhel-debuginfo.repo server1.repo
[root@localhost yum.repos.d]#
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[RPMS]
name=Local Repository from CD
baseurl=http://192.168.1.106/var/ftp/pub/gls/RPMS/
enabled=1
gpgcheck=0
---------------------------------------