quick-docs/en-US/modules/proc_package-install-command-line.adoc
2017-12-18 05:11:20 +00:00

30 lines
905 B
Text

= Installing software packages using the command line
[[proc_package-install-command-line]]
You can install packages in Fedora using the DNF utility.
.Before you begin
You must execute the command with root privileges. Use one of the following methods:
* Prefix the command with `sudo` and provide the root password. The `sudo` command must be enabled for the user.
* Use the `su` command and provide the root password to switch to a root prompt in a terminal window.
* Log in as `root` on a virtual console.
You must know the name of the package. Any dependencies will be installed automatically.
.Procedure
. Run the command:
+
----
dnf install <packagename>
----
+
where `<packagename>` is the name of the package.
. Answer `y` to any prompts, if necessary.
.More information
For other commands that the DNF utility support, see the documentation for https://fedoraproject.org/wiki/DNF[DNF].