Powered by Drupal

Listing all Versions of a Package/Installing a specific Version in Fedora 22

To list all install all versions of a package both currently installed and a available within the install repositories:

# dnf --showduplicate --release=22 list kernel
Last metadata expiration check performed 0:47:15 ago on Sun Dec 13 06:08:26 2015.
Installed Packages
kernel.x86_64                      4.0.4-301.fc22                       @System 
kernel.x86_64                      4.2.6-200.fc22                       @updates
Available Packages
kernel.x86_64                      4.0.4-301.fc22                       @System 
kernel.x86_64                      4.0.4-301.fc22                       fedora  
kernel.x86_64                      4.2.6-200.fc22                       @updates
kernel.x86_64                      4.2.6-201.fc22                       updates

Then to install a specific version do the following:

# dnf install kernel-4.2.6-201.fc22
Last metadata expiration check performed 0:52:21 ago on Sun Dec 13 06:08:26 2015.
Dependencies resolved.
================================================================================
 Package               Arch          Version               Repository      Size
================================================================================
Installing:
 kernel                x86_64        4.2.6-201.fc22        updates         73 k
 kernel-core           x86_64        4.2.6-201.fc22        updates         20 M
 kernel-modules        x86_64        4.2.6-201.fc22        updates         18 M

Transaction Summary
================================================================================
Install  3 Packages

Total download size: 37 M
Installed size: 59 M
Is this ok [y/N]:
Category: