Skip to content

dnf-install: add page #17096

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions pages/linux/dnf-install.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# dnf install

> Install packages on Red Hat-based distributions.
> More information: <https://dnf.readthedocs.io/en/latest/command_ref.html#install-examples>.

- Install packages by name:

`sudo dnf {{[in|install]}} {{package1 package2 ...}}`

- Install a package from a local file:

`sudo dnf {{[in|install]}} {{path/to/file}}`

- Install a package from the internet:

`sudo dnf {{[in|install]}} {{https://example.com/package.rpm}}`

- Add the Extra Packages for Enterprise Linux (EPEL) repositories:

`sudo dnf {{[in|install]}} https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm`

- Add Remi's RPM repository:

`sudo dnf {{[in|install]}} https://rpms.remirepo.net/enterprise/remi-release-8.rpm`