LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   yum server Configuration on rhel 5 (http://www.linuxquestions.org/questions/linux-server-73/yum-server-configuration-on-rhel-5-a-928657/)

Toushi 02-10-2012 08:40 AM

yum server Configuration on rhel 5
 
Hello All,

The is my first time configure the yum repository server. I have configure the server with ftp. While installing any package on server I get following error.

server ~]# yum -y install dhcp
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
Repository | 951 B 00:00
RHEL-Repository/primary | 856 kB 00:00
RHEL-Repository 2428/2428
ftp://192.163.35.128/pub/Server/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] timed out
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Server. Please verify its path and try again
-server ~]#

====================Configuration=====================

@rhel5-server ~]# vi /etc/yum.repos.d/Server.repo
[Server]
name=rhel5-server
baseurl=ftp://192.163.35.128/pub/Server
enabled=1
gpgcheck=0

=====================Location ofPackages==========================
/var/ftp/pub/Server
==================================================================
Kindly suggest on it.

kbscores 02-10-2012 08:53 AM

Most likely it is permissions on the Server directory. If it isn't that then if you are running SELinux check the context of that folder.

sibe 02-10-2012 01:05 PM

Are you able to ftp-get anything from the pub/Server using plain ftp commands?

knudfl 02-10-2012 01:14 PM

Quote:

This system is not registered with RHN.
Please activate your paid Redhat account. Else no repositories.


Don't want to pay ? Then do not use Redhat EL.
There are free versions of Redhat EL : CentOS and Scientific Linux.
http://www.centos.org/
http://www.scientificlinux.org/

.


All times are GMT -5. The time now is 11:07 PM.