Skip to content

Commit 10d2e41

Browse files
committed
docs: replace yum with dnf for package management
1 parent 4f3784a commit 10d2e41

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Ganeti RPM Packaging for RHEL/AlmaLinux/Rocky Linux/others.
1515
- [Installation tutorial](https://github.com/jfut/ganeti-rpm/blob/master/doc/install-rhel.md)
1616
- [Upgrade / update guides (update-rhel-*)](https://github.com/jfut/ganeti-rpm/tree/master/doc)
1717

18-
## YUM/DNF repository and binary RPM files
18+
## DNF repository and binary RPM files
1919

2020
- https://jfut.integ.jp/linux/ganeti/
2121
- https://ftp.osuosl.org/pub/ganeti-rpm/ (mirror, thanks to the OSU Open Source Lab)
@@ -194,7 +194,7 @@ BUILD_HOSTNAME=almalinux-8.github.integ.jp
194194
docker run -h "${BUILD_HOSTNAME}" --rm -it -v $PWD:/pkg -v ~/.gnupg.el8:/root/.gnupg almalinux:8 bash
195195

196196
# Setup
197-
yum -y install findutils rpm-sign pinentry
197+
dnf -y install findutils rpm-sign pinentry
198198

199199
# Set your gpg name
200200
echo "%_gpg_name [email protected]" >> ~/.rpmmacros

doc/install-rhel.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ iptables-restore < /etc/sysconfig/iptables
142142
ip6tables-restore < /etc/sysconfig/ip6tables
143143
```
144144
145-
## Setting up yum/dnf repositories
145+
## Setting up dnf repositories
146146
147147
**Mandatory** on all nodes.
148148

doc/update-rhel-2.16-to-3.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ tar zxf /root/ganeti-BACKUP_DATE.tar.gz -C /var/lib
120120
# el7
121121
yum --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el7
122122
# el8
123-
yum --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el8
123+
dnf --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el8
124124

125125
systemctl start ganeti.target
126126
systemctl start ganeti-kvmd.service

doc/update-rhel-3.0-to-3.1.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ chmod 600 /root/ganeti-$(date +%FT%H)*.tar.gz
3131
**Mandatory** on all nodes.
3232

3333
```bash
34-
yum --enablerepo=integ-ganeti update integ-ganeti-release
35-
yum --enablerepo=epel,integ-ganeti update ganeti
34+
dnf --enablerepo=integ-ganeti update integ-ganeti-release
35+
dnf --enablerepo=epel,integ-ganeti update ganeti
3636
```
3737

3838
## Upgrade configuration files on master node
@@ -107,11 +107,11 @@ mv /var/lib/ganeti /var/lib/ganeti.failed
107107
tar zxf /root/ganeti-BACKUP_DATE.tar.gz -C /var/lib
108108

109109
# el8
110-
yum --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el8
110+
dnf --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el8
111111
# el9
112-
yum --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el9
112+
dnf --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el9
113113
# el10
114-
yum --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el10
114+
dnf --enablerepo=epel,integ-ganeti downgrade ganeti-x.y.z-n.el10
115115

116116
systemctl start ganeti.target
117117
systemctl start ganeti-kvmd.service

0 commit comments

Comments
 (0)