mirror of
https://pagure.io/fedora-docs/quick-docs.git
synced 2024-11-24 21:35:17 +00:00
25 lines
774 B
Text
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.
|