LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   yum via ftp (with different directory) (https://www.linuxquestions.org/questions/linux-newbie-8/yum-via-ftp-with-different-directory-847422/)

kingston 11-30-2010 05:04 AM

yum via ftp (with different directory)
 
Hi All

I am using RHEL 5.4 on hp's proliat DL380 series server. I want to install kde through yum on one of our server. I installed vsftpd rpm and created the repository. i put an directive anon_root=/opt/yum in vsftp.conf file. Firewall,iptables and selinux's are disabled. When i do, "yum list lsscsi", i am getting the following error
Quote:

[root@einbalx0006 ~]# yum list lsscsi
Loaded plugins: rhnplugin, security
Repository 'local' is missing name in configuration, using id
This system is not registered with RHN.
RHN support will be disabled.
ftp://147.128.148.142/opt/yum/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: local. Please verify its path and try again
[root@einbalx0006 ~]#
i changed the permission of /opt/yum directory in server to root:ftp with 777. But still i failed to achieve. Please help me.

My yum configuration file is as follows,
Quote:

[root@einbalx0006 yum.repos.d]# cat local.repo
[local]
baseurl=ftp://147.128.148.142/opt/yum
enabled=1
gpgcheck=0
[root@einbalx0006 yum.repos.d]#

josh.engelbrecht 11-30-2010 08:13 AM

try removing '/opt/yum' from the repo file. You already told the vsftp server that your base path is /opt/yum.

kingston 11-30-2010 10:51 PM

it didnt help me.

josh.engelbrecht 12-01-2010 09:14 AM

are you still getting the same error? is there an error in the ftp log (not just the yum error) that is useful? Also is there a /opt/yum/repodata directory with the repomd.xml file(just trying to cover all bases). Can you access the ftp site via a web browser (ftp://147.128.148.142)? If not look in the log files again and see if there is a useful error. If so, try recreating the repository.

Side note: on the yum server I have running (hosted via web), the permissions are 644 root:root
And the ftp server I have are the same.


All times are GMT -5. The time now is 02:51 AM.