Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
admin_grundlagen:yum [2012/07/03 17:12] ingo_wichmann angelegt |
admin_grundlagen:yum [2020/11/13 16:45] (aktuell) ingo_wichmann |
||
|---|---|---|---|
| Zeile 7: | Zeile 7: | ||
| mehrere //yum// Befehle nacheinander, aber nur ein mal Cache aktualisieren: | mehrere //yum// Befehle nacheinander, aber nur ein mal Cache aktualisieren: | ||
| yum shell | yum shell | ||
| + | |||
| + | ====== yum changelog ====== | ||
| + | Changelog-Plugin installieren | ||
| + | yum install yum-plugin-changelog | ||
| + | |||
| + | Changelog abfragen | ||
| + | yum changelog 2017-10-01 "*openssh*" | ||
| + | oder bei Update | ||
| + | yum update <paket> --changelog | ||
| + | |||
| + | ====== CentOS Repository einschalten ====== | ||
| + | Beispiel: //centosplus// Repository einschalten: | ||
| + | |||
| + | yum repolist | ||
| + | yum-config-manager --enable centosplus | ||
| + | |||
| + | oder | ||
| + | |||
| + | <file txt /etc/yum.repos.d/CentOS-Base.repo>[centosplus]</file> | ||
| + | ... | ||
| + | <file>enabled=1</file> | ||
| + | |||
| + | |||
| + | |||
| + | ====== Drittanbieter Repository hinzufügen ====== | ||
| + | [[paketverwaltung#zusaetzliche_repositories|Liste von Drittanbieter Repositories]] | ||
| + | |||
| + | <file txt /etc/dnf/dnf.conf> | ||
| + | [main] | ||
| + | # Benötigt DNSSEC, erlaubt die Repository-Schlüssel automatisch zu erlauben | ||
| + | gpg_dns_verification=yes | ||
| + | |||
| + | </file> | ||
| + | |||
| + | |||
| + | ===== CentOS 5 ===== | ||
| + | Beispiel: Repository [[http://wiki.centos.org/AdditionalResources/Repositories/RPMForge|rpmforge]] hinzufügen : | ||
| + | yum install yum-priorities | ||
| + | (( Das Paket //yum-priorities// ist in CentOS 6 nicht mehr notwendig )) | ||
| + | ''/etc/yum.repos.d/CentOS-Base.repo'' : | ||
| + | <file> | ||
| + | [base] | ||
| + | priority=1 | ||
| + | </file> | ||
| + | .. | ||
| + | <file> | ||
| + | [update] | ||
| + | priority=1 | ||
| + | </file> | ||
| + | .. | ||
| + | wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm | ||
| + | rpm -i rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm | ||
| + | (( Dabei wird der öffentliche Schlüssel von Dag Wiers in rpm importiert: | ||
| + | rpm -q --scripts rpmforge-release | ||
| + | rpm -qa gpg-pubkey* | ||
| + | Bei anderen Repositories muss man das von Hand machen. Z.B. ELRepo: | ||
| + | rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-elrepo.org | ||
| + | )) | ||
| + | === testen === | ||
| + | yum install htop | ||
| ====== Mirror erstellen ====== | ====== Mirror erstellen ====== | ||
| Zeile 26: | Zeile 86: | ||
| rsync $o ftp.hosteurope.de::centos/5/updates/x86_64/ /srv/mirror/centos/5/updates/x86_64/ | rsync $o ftp.hosteurope.de::centos/5/updates/x86_64/ /srv/mirror/centos/5/updates/x86_64/ | ||
| rsync ftp.hosteurope.de::centos/RPM-GPG-KEY-CentOS-5 /srv/mirror/centos/RPM-GPG-KEY-CentOS-5 | rsync ftp.hosteurope.de::centos/RPM-GPG-KEY-CentOS-5 /srv/mirror/centos/RPM-GPG-KEY-CentOS-5 | ||
| + | |||
| + | |||
| + | ====== Repository ====== | ||
| + | |||
| + | 257 dnf install httpd | ||
| + | 275 service httpd start | ||
| + | |||
| + | 268 yum install -y createrepo | ||
| + | 266 mkdir -p /var/www/html/centos/8/local/x86_64/RPMS | ||
| + | 267 mv *.rpm /var/www/html/centos/8/local/x86_64/RPMS | ||
| + | 273 createrepo /var/www/html/centos/8/local/x86_64 | ||
| + | 274 find /var/www/html/centos/8/local | ||