Skip to content

Commit f380eb8

Browse files
authored
Update dnf-swap.md examples (#3011)
* make the example match version 9 for consistency
1 parent 7eaed5f commit f380eb8

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

docs/gemstones/dnf-swap.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ tags:
88
- containers
99
- dnf
1010
- dnf swap
11-
- curl
12-
- curl-minimal
11+
- vim
12+
- vim-minimal
1313
- allowerasing
1414
- coreutils-single
1515
---
@@ -25,35 +25,34 @@ For cases, when the stripped-down package is not enough, you can use the `dnf sw
2525

2626
## Objective
2727

28-
This Rocky Linux GEMstone demonstrates how to use **dnf** to _swap_ the bundled `curl-minimal` package with the regular `curl` package.
28+
This Rocky Linux GEMstone demonstrates how to use **dnf** to _swap_ the bundled `vim-minimal` package with the regular `vim` package.
2929

30-
## Check existing curl variant
30+
## Check existing `vim` variant
3131

32-
While logged into your container or virtual machine environment as a user with administrative privileges, first verify the variant of `curl` package installed. Type:
32+
While logged into your container or virtual machine environment as a user with administrative privileges, first verify the variant of `vim` package installed. Type:
3333

3434
```bash
35-
# rpm -qa | grep  ^curl-minimal
36-
curl-minimal-*
35+
# rpm -qa | grep  ^vim
36+
vim-minimal-9.1.083-5.el10_0.1.x86_64
3737
```
3838

39-
We have curl-minimal on our demo system!
39+
You have `vim-minimal` on our system.
4040

41-
## Swap curl-minimal for curl
41+
## Swap `vim-minimal` for `vim`
4242

43-
Use `dnf` to swap the installed `curl-minimal` package with regular `curl` package.
43+
Use `dnf` to swap the installed `vim-minimal` package with regular `vim` package.
4444

4545
```bash
46-
# dnf -y swap curl-minimal curl
47-
46+
# dnf -y swap vim-minimal vim
4847
```
4948

50-
## Check new curl package variant
49+
## Check new `vim` package variant
5150

52-
To confirm the changes, query the rpm database again for the installed curl package(s) by running:
51+
To confirm the changes, query the rpm database again for the installed `vim` package(s) by running:
5352

5453
```bash
55-
# rpm -qa | grep  ^curl
56-
curl-*
54+
# rpm -qa | grep  ^vim
55+
vim-enhanced-9.1.083-5.el10_0.1.x86_64
5756
```
5857

5958
And it's a GEM !
@@ -68,8 +67,8 @@ DNF Swap Command
6867
dnf [options] swap <package-to-be-removed> <replacement-package>
6968
```
7069

71-
Under the hood, `dnf swap` uses DNF's `--allowerasing` option to resolve any package conflict issues. Therefore the curl minimal example demonstrated in this GEMstone could also have been done by running:
70+
Under the hood, `dnf swap` uses DNF's `--allowerasing` option to resolve any package conflict issues. Therefore the `vim-minimal` example demonstrated in this GEMstone could also have been done by running:
7271

7372
```bash
74-
dnf install -y --allowerasing curl
73+
dnf install -y --allowerasing vim
7574
```

0 commit comments

Comments
 (0)