Yum Cannot Download From Local Repository

Home » CentOS » Yum Cannot Download From Local Repository
CentOS 3 Comments

I have set up a local filesystem repo thus:

# cat /etc/yum.repos.d/LocalFiles.repo
# LocalFiles.repo
#
# This repo is used with rpms contained in a local filesystem repo
# created with createrepo. You can use this repo and yum to install
# items directly off the local disk.
#
# To use this repo with the other repos:
# yum –enablerepo=localfiles yum –nogpgcheck
#
# or to ONLY this repo, do this:
#
# yum –disablerepo=\* –enablerepo=localfiles

[localfiles]
name

3 thoughts on - Yum Cannot Download From Local Repository

  • Because of the size of the listing I did not show the entire contents of the local repo. However, mod_ssl is indeed present:

    ll /root/RPMS/repos/Packages total 39856
    -rw-rw-r–. 1 root root 92768 Apr 21 16:15 apr-1.5.0-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 413768 Apr 21 16:15
    apr-debuginfo-1.5.0-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 825424 Apr 21 16:15 apr-devel-1.5.0-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 77588 Apr 21 16:15 apr-util-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 7136 Apr 21 16:15 apr-util-dbm-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 433748 Apr 21 16:15
    apr-util-debuginfo-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 489160 Apr 21 16:15
    apr-util-devel-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 12216 Apr 21 16:15
    apr-util-freetds-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 9068 Apr 21 16:15
    apr-util-ldap-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 14904 Apr 21 16:15
    apr-util-mysql-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 11084 Apr 21 16:15 apr-util-nss-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 20644 Apr 21 16:15
    apr-util-odbc-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 10360 Apr 21 16:15
    apr-util-openssl-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 14848 Apr 21 16:15
    apr-util-pgsql-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 11408 Apr 21 16:15
    apr-util-sqlite-1.5.3-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 1151252 Apr 21 16:15 httpd-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 3415444 Apr 21 16:15
    httpd-debuginfo-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 186000 Apr 21 16:15 httpd-devel-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 3300912 Apr 21 16:15 httpd-manual-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 69784 Apr 21 16:15 httpd-tools-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 43412 Apr 21 16:15
    mod_authnz_ldap-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 42292 Apr 21 16:15 mod_lua-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 22304 Apr 21 16:15
    mod_proxy_html-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 80708 Apr 21 16:15 mod_ssl-2.4.9-1.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 1234596 Apr 21 16:15 php-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 34472 Apr 21 16:15 php-bcmath-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 2284236 Apr 21 16:15 php-cli-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 536152 Apr 21 16:15 php-common-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 40832 Apr 21 16:15 php-dba-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 20211088 Apr 21 16:15
    php-debuginfo-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 519364 Apr 21 16:15 php-devel-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 1170188 Apr 21 16:15
    php-embedded-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 28656 Apr 21 16:15 php-enchant-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 1197048 Apr 21 16:15 php-fpm-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 107872 Apr 21 16:15 php-gd-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 50636 Apr 21 16:15 php-imap-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 71512 Apr 21 16:15 php-intl-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 38196 Apr 21 16:15 php-ldap-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 465136 Apr 21 16:15
    php-mbstring-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 82212 Apr 21 16:15 php-mysql-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 51020 Apr 21 16:15 php-odbc-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 75980 Apr 21 16:15 php-pdo-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 70844 Apr 21 16:15 php-pgsql-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 39208 Apr 21 16:15 php-process-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 28204 Apr 21 16:15 php-pspell-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 24912 Apr 21 16:15 php-recode-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 30684 Apr 21 16:15 php-snmp-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 142412 Apr 21 16:15 php-soap-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 35956 Apr 21 16:15 php-tidy-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 104684 Apr 21 16:15 php-xml-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 52796 Apr 21 16:15 php-xmlrpc-5.3.3-27.el6.x86_64.rpm
    -rw-rw-r–. 1 root root 1230648 Apr 21 16:15 php-zts-5.3.3-27.el6.x86_64.rpm

  • James B. Byrne wrote:
    perhaps they do


    I see that the ownership should be ok… unless you’ve got selinux enabled, where I have no data. I missed the beginning of this – have you rebuilt repodata?

    mark