tech:creation_d_un_depot_redhat_rpm_pour_yum
Ceci est une ancienne révision du document !
Table des matières
Création d'un dépôt RedHat RPM pour Yum
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
<VirtualHost *:81> DocumentRoot /var/www/repo/el7/ <Directory /var/www/repo/el7/> Options +Indexes </Directory> <Location /> Allow from all </Location> </VirtualHost>
- /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
tech/creation_d_un_depot_redhat_rpm_pour_yum.1742825205.txt.gz · Dernière modification : de 127.0.0.1
