quick-docs/modules/ROOT/pages/_partials/proc_package-install-command-line.adoc

26 lines
774 B
Text
Raw Normal View History

2017-12-18 05:11:20 +00:00
[[proc_package-install-command-line]]
2018-01-21 16:17:36 +00:00
= Installing software packages using the command line
2017-12-18 05:11:20 +00:00
You can install packages in Fedora using the DNF utility.
.Before you begin
2018-01-21 16:17:36 +00:00
You must execute the command with *root* privileges. Use one of the following methods:
2017-12-18 05:11:20 +00:00
2018-01-21 16:17:36 +00:00
* Prefix the command with `sudo` and provide your user password. The `sudo` command must be enabled for your user.
2017-12-18 05:11:20 +00:00
* 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:
+
----
2018-01-21 16:17:36 +00:00
# dnf install <packagename>
2017-12-18 05:11:20 +00:00
----
+
where `<packagename>` is the name of the package.
. Answer `y` to any prompts, if necessary.