Yum cannot install from repository

Hi guys,
thanks for you help on this issue.

I built a dvd repository on my server and when I try to install a package from it, I get this error

ftp://10.0.0.12/pub/Packages/httpd-2.2.15-26.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 9 - "Server denied you to change to the given directory"

I will really appreciate any help with this.

Thanks a lot for your assistance.

cjashu

It could be an SELinux thing.

Try:

# chcon -R -t public_content_t /var/ftp/pub

Remembering to use semanage to make it permanent:

# semanage fcontext -a -u system_u -t public_content_t /var/ftp/pub/*

Or this:

# semanage fcontext -a -u system_u -t public_content_t /var/ftp/pub/*
# restorecon -R /var/ftp/pub
1 Like

Thanks again Scott. Was the firewall.
selinux was set at enforcing.

Much appreciated.