You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/gemstones/dnf-swap.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ tags:
8
8
- containers
9
9
- dnf
10
10
- dnf swap
11
-
- curl
12
-
- curl-minimal
11
+
- vim
12
+
- vim-minimal
13
13
- allowerasing
14
14
- coreutils-single
15
15
---
@@ -25,35 +25,35 @@ For cases, when the stripped-down package is not enough, you can use the `dnf sw
25
25
26
26
## Objective
27
27
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.
29
29
30
-
## Check existing curl variant
30
+
## Check existing `vim` variant
31
31
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:
33
33
34
34
```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
37
37
```
38
38
39
-
We have curl-minimal on our demo system!
39
+
The `vim-minimal` package is on your system.
40
40
41
-
## Swap curl-minimal for curl
41
+
## Swap `vim-minimal` for `vim`
42
42
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.
44
44
45
45
```bash
46
-
# dnf -y swap curl-minimal curl
46
+
# dnf -y swap vim-minimal vim
47
47
48
48
```
49
49
50
-
## Check new curl package variant
50
+
## Check new `vim` package variant
51
51
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:
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:
0 commit comments