From 372b8990771c24c99ff11eb28fcf8b53fa562f45 Mon Sep 17 00:00:00 2001 From: John J. McDonough Date: May 08 2015 15:33:57 +0000 Subject: Updated dnf (formerly yum) portion of the Installing Software appendix --- 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 @@ There are basically two ways to install software from the Fedora repositories; from the GUI using PackageKit and - from the command line using yum. Because the - yum approach is simpler, throughout this + from the command line using dnf. Because the + dnf approach is simpler, throughout this document we describe that method. However, there are a number of - details with respect to yum that are useful to + details with respect to dnf that are useful to know, and some users feel more comfortable with a graphical user interface. Hence, this appendix. @@ -173,10 +173,10 @@
- Installing Software with yum + Installing Software with dnf 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: @@ -187,8 +187,9 @@ [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 + ... @@ -203,12 +204,13 @@ Loaded plugins: presto, refresh-packagekit You may use the su command with the -c switch. This allows you to enter - the single yum command as root, but + the single dnf command as root, but immediately switches back to your normal user: -[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 + ... @@ -225,8 +227,8 @@ Loaded plugins: presto, refresh-packagekit sudoers file, you may use the sudo command: -[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. ... @@ -245,42 +247,28 @@ Loaded plugins: presto, refresh-packagekit - yum may determine that additional packages - must be installed. yum will list these + dnf may determine that additional packages + must be installed. dnf 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: -[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]: Answer y or N depending on @@ -289,50 +277,71 @@ Is this ok [y/N]:
Searching for Software - yum gives you a number of choices for + dnf 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 yum + specific words in the description using dnf search: -[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 ~]$ - yum 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 yum info command: + dnf will return the names of any package + with the specified phrase in its short description, and a short + description. + + + Often is is better (but slower) to search the full + description, which is accomplished with the search + all command. + +[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 ~]$ + + + + You may get a more detailed description of the + package with the dnf info command: -[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 ~]$ - Notice that yum also tells you whether the - package is installed. Yum also gives you the address of the + Notice that dnf 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.