LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Setting up RHEL5 repo (https://www.linuxquestions.org/questions/linux-software-2/setting-up-rhel5-repo-767819/)

charlesips 11-09-2009 12:15 AM

Setting up RHEL5 repo
 
when i try to own yum ftp server the following error accure
i am using RHEL 5.3 os
ftp://192.168.6.1/var/ftp/pub/RHEL5/...ta/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory
myrepoline
[myrepo]
name=Red Hat Enterprise Linux
baseurl=ftp://192.168.6.1/var/ftp/pub/RHEL5/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release


pls help me

knudfl 11-09-2009 09:02 AM

Please show a copy of the "repo line".

The repo address is supposed to point to a directory
by name " repodata ".

Like :
ftp://192.168.6.1/var/ftp/pub/RHEL5/Server/(repodata)

charlesips 11-09-2009 11:18 PM

repoline
 
[myrepo]
name=Red Hat Enterprise Linux
baseurl=ftp://192.168.6.1/var/ftp/pub/RHEL5/Server
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

chiragrk 11-10-2009 12:18 AM

....and thats a problem? how?

knudfl 11-10-2009 02:50 PM

3 Attachment(s)
*** The repo address is supposed to point to a directory
by name " repodata ".

So how is the directory structure on this site
ftp://192.168.6.1/var/ftp/pub/RHEL5/Server
? ? ?

... When you create it to be
"ftp://192.168.6.1/var/ftp/pub/RHEL5/Server/repodata/repomd.xml"
( where repomd.xml is an .xml index file in the directory repodata/ )

... Then it will work with this baseurl=
ftp://192.168.6.1/var/ftp/pub/RHEL5/Server
in /etc/yum.repos.d/<file>.repo
.....

Usable /etc/yum.repos.d/<files>.repo for EL5.x, CentOS5.x, SL5.x
are attached ... so you can get an idea about how it works ..
These files provide access to 6,348 packages.

pixellany 11-10-2009 03:25 PM

I've merged the 2 threads----it looks like OP inadvertently started a new thread instead of replying to the existing one.


All times are GMT -5. The time now is 12:24 PM.