quick-docs/en-US/modules/proc_package-install-command-line.adoc
2018-01-21 17:17:36 +01:00

25 lines
774 B
Text

[[proc_package-install-command-line]]
= Installing software packages using the 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 your user password. The `sudo` command must be enabled for your 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.