Skip to content

Commit 9bea2a7

Browse files
Managordmmqzspageektti
authored
dnf-install: add page (#17096)
Co-authored-by: Dylan <[email protected]> Co-authored-by: Wiktor Perskawiec <[email protected]>
1 parent 06bded4 commit 9bea2a7

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

pages/linux/dnf-install.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# dnf install
2+
3+
> Install packages on Red Hat-based distributions.
4+
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#install-examples>.
5+
6+
- Install packages by name:
7+
8+
`sudo dnf {{[in|install]}} {{package1 package2 ...}}`
9+
10+
- Install a package from a local file:
11+
12+
`sudo dnf {{[in|install]}} {{path/to/file}}`
13+
14+
- Install a package from the internet:
15+
16+
`sudo dnf {{[in|install]}} {{https://example.com/package.rpm}}`
17+
18+
- Add the Extra Packages for Enterprise Linux (EPEL) repositories:
19+
20+
`sudo dnf {{[in|install]}} https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm`
21+
22+
- Add Remi's RPM repository:
23+
24+
`sudo dnf {{[in|install]}} https://rpms.remirepo.net/enterprise/remi-release-8.rpm`

0 commit comments

Comments
 (0)