Skip to content

Commit b609c80

Browse files
committed
doc: Use dnf instead of yum
The yum command has been replaced by the dnf command in recent releases of Fedora-based distributions. Use the native command instead of the alias kept for compatibility. Change-Id: I0a1dfdaca91164eff2c25795f66976ec70356574
1 parent 3510a4c commit b609c80

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

doc/source/guides/multinode-lab.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Install a couple of packages to bootstrap configuration:
2424

2525
::
2626

27-
apt-get install -y git sudo || yum install -y git sudo
27+
apt-get install -y git sudo || dnf install -y git sudo
2828

2929
Network Configuration
3030
---------------------

doc/source/guides/single-machine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ to have sudo privileges:
6262

6363
.. code-block:: console
6464
65-
$ apt-get install sudo -y || yum install -y sudo
65+
$ apt-get install sudo -y || dnf install -y sudo
6666
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/stack
6767
6868
.. note:: On some systems you may need to use ``sudo visudo``.
@@ -81,7 +81,7 @@ We'll grab the latest version of DevStack via https:
8181

8282
.. code-block:: console
8383
84-
$ sudo apt-get install git -y || sudo yum install -y git
84+
$ sudo apt-get install git -y || sudo dnf install -y git
8585
$ git clone https://opendev.org/openstack/devstack
8686
$ cd devstack
8787

doc/source/guides/single-vm.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ passed as the user-data file when booting the VM.
5656
write_files:
5757
- content: |
5858
#!/bin/sh
59-
DEBIAN_FRONTEND=noninteractive sudo apt-get -qqy update || sudo yum update -qy
60-
DEBIAN_FRONTEND=noninteractive sudo apt-get install -qqy git || sudo yum install -qy git
59+
DEBIAN_FRONTEND=noninteractive sudo apt-get -qqy update || sudo dnf update -qy
60+
DEBIAN_FRONTEND=noninteractive sudo apt-get install -qqy git || sudo dnf install -qy git
6161
sudo chown stack:stack /home/stack
6262
cd /home/stack
6363
git clone https://opendev.org/openstack/devstack

doc/source/networking.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ install ``sshuttle`` on your localhost:
213213

214214
.. code-block:: bash
215215
216-
sudo apt-get install sshuttle || yum install sshuttle
216+
sudo apt-get install sshuttle || dnf install sshuttle
217217
218218
Finally, start ``sshuttle`` on your localhost using the floating IP address
219219
range. For example, assuming you are using the default value for

doc/source/plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ an early phase of its execution. These packages may be defined in a
232232
plugin as files that contain new-line separated lists of packages
233233
required by the plugin
234234

235-
Supported packaging systems include apt and yum across multiple
235+
Supported packaging systems include apt and dnf across multiple
236236
distributions. To enable a plugin to hook into this and install
237237
package dependencies, packages may be listed at the following
238238
locations in the top-level of the plugin repository:

0 commit comments

Comments
 (0)