mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 09:55:26 +02:00
dnf-install: add page (#17096)
Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <wiktor@perskawiec.cc>
This commit is contained in:
parent
06bded44a0
commit
9bea2a7446
1 changed files with 24 additions and 0 deletions
24
pages/linux/dnf-install.md
Normal file
24
pages/linux/dnf-install.md
Normal file
|
@ -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`
|
Loading…
Add table
Reference in a new issue