commit 372b8990771c24c99ff11eb28fcf8b53fa562f45
Author: John J. McDonough <jjmcd(a)fedoraproject.org>
Date: Fri May 8 11:33:57 2015 -0400
Updated dnf (formerly yum) portion of the Installing Software appendix
en-US/Installing_Software.xml | 149 ++++++++++++++++++++++-------------------
1 files changed, 79 insertions(+), 70 deletions(-)
---
diff --git a/en-US/Installing_Software.xml b/en-US/Installing_Software.xml
index bda307c..f82bc72 100644
--- a/en-US/Installing_Software.xml
+++ b/en-US/Installing_Software.xml
@@ -8,10 +8,10 @@
<para>
There are basically two ways to install software from the Fedora
repositories; from the GUI using <package>PackageKit</package> and
- from the command line using <package>yum</package>. Because the
- <package>yum</package> approach is simpler, throughout this
+ from the command line using <package>dnf</package>. Because the
+ <package>dnf</package> approach is simpler, throughout this
document we describe that method. However, there are a number of
- details with respect to <package>yum</package> that are useful to
+ details with respect to <package>dnf</package> that are useful to
know, and some users feel more comfortable with a graphical user
interface. Hence, this appendix.
</para>
@@ -173,10 +173,10 @@
</para>
</section>
<section>
- <title>Installing Software with yum</title>
+ <title>Installing Software with dnf</title>
<para>
Unlike PackageKit, where the system administrator may choose to
- allow non-administrative users to install software, yum requires
+ allow non-administrative users to install software, dnf requires
administrator authentication. There are three ways this can be
done:
<itemizedlist>
@@ -187,8 +187,9 @@
<screen>
[jjmcd@Cimbaoth ~]$ su -
Password:
-[root@Cimbaoth ~]# yum install xastir
-Loaded plugins: presto, refresh-packagekit
+[root@Cimbaoth ~]# dnf install xastir
+Last metadata expiration check performed 0:01:58 ago on Fri May 8 11:11:35 2015
+
...
</screen>
</para>
@@ -203,12 +204,13 @@ Loaded plugins: presto, refresh-packagekit
<para>
You may use the <command>su</command> command with the
<command>-c</command> switch. This allows you to enter
- the single <command>yum</command> command as root, but
+ the single <command>dnf</command> command as root, but
immediately switches back to your normal user:
<screen>
-[jjmcd@Cimbaoth ~]$ su - 'yum install fldigi'
+[jjmcd@Cimbaoth ~]$ su - 'dnf install fldigi'
Password:
-Loaded plugins: presto, refresh-packagekit
+Last metadata expiration check performed 0:01:58 ago on Fri May 8 11:11:35 2015
+
...
</screen>
</para>
@@ -225,8 +227,8 @@ Loaded plugins: presto, refresh-packagekit
<filename>sudoers</filename> file, you may use the
<command>sudo</command> command:
<screen>
-[jjmcd@Cimbaoth ~]$ sudo yum install wxapt
-Loaded plugins: presto, refresh-packagekit
+[jjmcd@Cimbaoth ~]$ sudo dnf install wxapt
+Last metadata expiration check performed 0:01:58 ago on Fri May 8 11:11:35 2015.
...
</screen>
</para>
@@ -245,42 +247,28 @@ Loaded plugins: presto, refresh-packagekit
</itemizedlist>
</para>
<para>
- <command>yum</command> may determine that additional packages
- must be installed. <command>yum</command> will list these
+ <command>dnf</command> may determine that additional packages
+ must be installed. <command>dnf</command> will list these
packages and calculate the total size of the download. It will
then ask you whether you want to actually download and install
this package or group of packages:
<screen>
-[jjmcd@Cimbaoth ~]$ sudo yum install trustedqsl
-Loaded plugins: presto, refresh-packagekit
-Setting up and reading Presto delta metadata
-Setting up Install Process
-Resolving Dependencies
---> Running transaction check
----> Package trustedqsl.i386 0:1.11-3.fc10 set to be updated
---> Processing Dependency: tqsllib >= 1.2 for package: trustedqsl-1.11-3.fc10.i386
---> Processing Dependency: libtqsllib.so.1 for package: trustedqsl-1.11-3.fc10.i386
---> Running transaction check
----> Package tqsllib.i386 0:2.0-5.fc10 set to be updated
---> Finished Dependency Resolution
-
-Dependencies Resolved
-
+[jjmcd@Cimbaoth ~]$ sudo dnf install trustedqsl
+Last metadata expiration check performed 0:09:44 ago on Fri May 8 11:11:35 2015.
+Dependencies resolved.
================================================================================
- Package Arch Version Repository Size
+ Package Arch Version Repository Size
================================================================================
Installing:
- trustedqsl i386 1.11-3.fc10 updates 557 k
-Installing for dependencies:
- tqsllib i386 2.0-5.fc10 updates 167 k
+ tqsllib x86_64 2.4-7.fc22 fedora 157 k
+ trustedqsl x86_64 2.0.3-6.fc22 fedora 1.6 M
Transaction Summary
================================================================================
-Install 2 Package(s)
-Update 0 Package(s)
-Remove 0 Package(s)
+Install 2 Packages
-Total download size: 723 k
+Total download size: 1.8 M
+Installed size: 16 M
Is this ok [y/N]:
</screen>
Answer <command>y</command> or <command>N</command>
depending on
@@ -289,50 +277,71 @@ Is this ok [y/N]:
<section>
<title>Searching for Software</title>
<para>
- <command>yum</command> gives you a number of choices for
+ <command>dnf</command> gives you a number of choices for
locating software you desire. To find information about a
package you do not need to provide credentials. Any user may
look up information about a package. You may search for
- specific words in the description using <command>yum
+ specific words in the description using <command>dnf
search</command>:
<screen>
-[jjmcd@Cimbaoth ~]$ yum search APRS
-Loaded plugins: presto, refresh-packagekit
-Setting up and reading Presto delta metadata
-================================ Matched: APRS =================================
-aprsd.i386 : Internet gateway and client access to amateur radio APRS packet
- : data
-xastir.i386 : Amateur Station Tracking and Reporting system for amateur radio
+[jjmcd@Cimbaoth ~]$ dnf search APRS
+Last metadata expiration check performed 0:00:01 ago on Fri May 8 11:22:55 2015.
+============================== N/S Matched: APRS ===============================
+aprsd.x86_64 : Internet gateway and client access to amateur radio APRS packet
+ : data
+aprsdigi.x86_64 : AX.25 Automatic Position Reporting System
+libfap.i686 : An APRS parser written in C
+libfap.x86_64 : An APRS parser written in C
[jjmcd@Cimbaoth ~]$
</screen>
- <command>yum</command> will return the names of any package
- with the specified phrase in its description, and a short
- description. You may get a more detailed description of the
- package with the <command>yum info</command> command:
+ <command>dnf</command> will return the names of any package
+ with the specified phrase in its short description, and a short
+ description.
+ </para>
+ <para>
+ Often is is better (but slower) to search the full
+ description, which is accomplished with the <command>search
+ all</command> command.
+<screen>
+[jjmcd@F22WS-beta ~]$ dnf search all APRS
+Last metadata expiration check performed 0:05:18 ago on Fri May 8 11:22:55 2015.
+================================ Matched: APRS =================================
+aprsd.x86_64 : Internet gateway and client access to amateur radio APRS packet
+ : data
+aprsdigi.x86_64 : AX.25 Automatic Position Reporting System
+libfap.i686 : An APRS parser written in C
+libfap.x86_64 : An APRS parser written in C
+xastir.x86_64 : Amateur Station Tracking and Reporting system for amateur radio
+[jjmcd@F22WS-beta ~]$
+</screen>
+ </para>
+ <para>
+ You may get a more detailed description of the
+ package with the <command>dnf info</command> command:
<screen>
-[jjmcd@Cimbaoth ~]$ yum info xastir
-Loaded plugins: presto, refresh-packagekit
-Setting up and reading Presto delta metadata
-Installed Packages
-Name : xastir
-Arch : i386
-Version : 1.9.4
-Release : 5.fc10
-Size : 4.0 M
-Repo : installed
-Summary : Amateur Station Tracking and Reporting system for amateur radio
-URL :
http://www.xastir.org
-License : GPLv2+
-Description: Xastir is a graphical application that interfaces HAM radio
- : and internet access to realtime mapping software.
- :
- : Install XASTIR if you are interested in APRS(tm) and HAM radio
- : software.
+[jjmcd@Cimbaoth ~]$ dnf info xastir
+Last metadata expiration check performed 0:00:52 ago on Fri May 8 11:22:55 2015.
+Available Packages
+Name : xastir
+Arch : x86_64
+Epoch : 1
+Version : 2.0.4
+Release : 8.fc22
+Size : 1.3 M
+Repo : fedora
+Summary : Amateur Station Tracking and Reporting system for amateur radio
+URL :
http://www.xastir.org
+License : GPLv2+
+Description : Xastir is a graphical application that interfaces HAM radio
+ : and internet access to realtime mapping software.
+ :
+ : Install XASTIR if you are interested in APRS(tm) and HAM radio
+ : software.
[jjmcd@Cimbaoth ~]$
</screen>
- Notice that <command>yum</command> also tells you whether the
- package is installed. Yum also gives you the address of the
+ Notice that <command>dnf</command> also tells you whether the
+ package is installed. Dnf also gives you the address of the
upstream website so you may learn more about the package
before installing it.
</para>