Skip to content

Commit 0494bef

Browse files
authored
Modify dnf-swap.md example (#3010)
* use vim and vim-minimal in the example * change the wording accordingly
1 parent dd076f7 commit 0494bef

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

docs/gemstones/dnf-swap.md

Lines changed: 17 additions & 17 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,35 @@ 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-8.2.2637-22.el9_6.1.x86_64
3737
```
3838

39-
We have curl-minimal on our demo system!
39+
The `vim-minimal` package is on your 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
46+
# dnf -y swap vim-minimal vim
4747

4848
```
4949

50-
## Check new curl package variant
50+
## Check new `vim` package variant
5151

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

5454
```bash
55-
# rpm -qa | grep  ^curl
56-
curl-*
55+
# rpm -qa | grep  ^vim
56+
vim-enhanced-8.2.2637-22.el9_6.1.x86_64
5757
```
5858

5959
And it's a GEM !
@@ -68,8 +68,8 @@ DNF Swap Command
6868
dnf [options] swap <package-to-be-removed> <replacement-package>
6969
```
7070

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:
71+
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:
7272

7373
```bash
74-
dnf install -y --allowerasing curl
74+
dnf install -y --allowerasing vim
7575
```

0 commit comments

Comments
 (0)