{{tag>Brouillon rpm yum Repo RedHat}} = Création d'un dépôt RedHat RPM pour Yum Voir : * **createrepo_c** Voir aussi pour Debian : * [[depot_debian_apt_repository]] == Conf dépots yum install createrepo repoview mkdir -p /var/www/repo #mkdir -p /var/www/repo/SRPMS cp *.rpm /var/www/repo/ createrepo /var/www/repo/el7 repoview /var/www/repo/el7 chown -R apache:apache /var/www/repo == Conf Apache ''/etc/httpd/conf.d/repo.conf'' DocumentRoot /var/www/repo/el7/ Options +Indexes Allow from all ''/etc/httpd/conf/httpd.conf'' Listen 80 Listen 81 apache -t && systemctl reload httpd == Conf client ''/etc/yum.repos.d/mon.repo'' [interne] name=Dépôt interne enabled=1 gpgcheck=0 baseurl=http://localhost:81/ #gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Pour tester la conf du client yum clean all yum list