From Fedora Project Wiki

(tweak a bit)
Line 1: Line 1:
 
{{QA/Test_Case
 
{{QA/Test_Case
 
|description=
 
|description=
DNF-2.0 is the next upcoming major version of DNF package manager. Unfortunately, it brings some incompatibilities with previous version of DNF (DNF-1) which were either needed to preserve compatibility with YUM CLI or where bigger redesigns were needed. A list of identified incompatible changes can be found here[http://dnf.readthedocs.io/en/latest/dnf-1_vs_dnf-2.html].This test case identifies how to test basic commands , plugins and third party software.
+
DNF-2.0 is the next upcoming major version of DNF package manager. Unfortunately, it brings some incompatibilities with previous version of DNF (DNF-1) which were either needed to improve compatibility with the old yum interface, or where bigger redesigns were needed. A list of identified incompatible changes can be found [http://dnf.readthedocs.io/en/latest/dnf-1_vs_dnf-2.html here]. This test case isn't a precise step-by-step, but rather suggests several different avenues for testing basic commands, plugins and third party software.
 
|setup=
 
|setup=
'''Back up''' your important data. Every system change is potentially risky, be prepared. In case you update your workstation, it is also wise to download a [https://getfedora.org/en/workstation/ Workstation Live image] and make sure your hardware (graphics card, wifi, etc) works well with the latest kernel and drivers.
+
If you are testing from a system you use for other purposes (which we don't usually recommend), '''BACK UP''' your important data. Every system change is potentially risky, be prepared.
* you can install DNF-2 from [https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/ this COPR repo] for testing
+
* Optionally, install a current DNF 2 snapshot from [https://copr.fedorainfracloud.org/coprs/rpmsoftwaremanagement/dnf-nightly/ this COPR repo] - testing with both the current officially packaged DNF 2 and a more recent snapshot is useful:
 +
** {{command|dnf copr enable rpmsoftwaremanagement/dnf-nightly}}
 +
** {{command|dnf update dnf}}
 
* testing scenarios:
 
* testing scenarios:
 
** anaconda installation
 
** anaconda installation
Line 12: Line 14:
 
** third party software: mock, yumex
 
** third party software: mock, yumex
 
|actions=
 
|actions=
* Enable and install the copr repo {{command|dnf}}:
+
* Install updates from enabled repos: {{command|sudo dnf update}}
<pre> $ dnf copr enable rpmsoftwaremanagement/dnf-nightly</pre>
+
* Install, update and remove packages: {{command|sudo dnf (install|update|remove) packagename}}
* Install updates from enabled repo
+
* A list of all commands is available [http://dnf.readthedocs.io/en/latest/command_ref.html here], as time permits, test out various subcommands and note any odd behaviours or undocumented differences between yum, DNF 1.x and 2.x
<pre> $ dnf update </pre>
+
* Testing yum2dnf compatibility:
* Install, upgrade and remove packages {{command|dnf}}:
+
** Run any use case you can think of using {{command|yum}}: {{command|yum [option] foo}}
<pre>$ sudo dnf [OPTION] foo</pre>
 
* Update your system using the standard updater for your desktop or {{command|dnf}}:
 
<pre>$ sudo dnf upgrade --refresh</pre>
 
* A list of all the commands are listed here[http://dnf.readthedocs.io/en/latest/command_ref.html]
 
* Testing yum2dnf compatibility
 
** run any use case you can think of using {{command|yum}}:  
 
<pre>$ yum [option] foo </pre>
 
 
 
 
|results=
 
|results=
* Repo will enable and install without throwing any error
+
* If updating to a snapshot from the COPR repo, the repo should enable and the update install successfully
* System will successfully upgrade to desired version
+
* {{command|dnf update}} should update the system successfully  
* Commands listed in[http://dnf.readthedocs.io/en/latest/command_ref.html] should work fine
+
* Commands listed at [http://dnf.readthedocs.io/en/latest/command_ref.html] should work fine
* System Upgrade should be able to update the system from older version
 
 
* DNF 2.0 should be able to handle yum operations
 
* DNF 2.0 should be able to handle yum operations
 
 
}}
 
}}

Revision as of 23:49, 4 May 2017

Description

DNF-2.0 is the next upcoming major version of DNF package manager. Unfortunately, it brings some incompatibilities with previous version of DNF (DNF-1) which were either needed to improve compatibility with the old yum interface, or where bigger redesigns were needed. A list of identified incompatible changes can be found here. This test case isn't a precise step-by-step, but rather suggests several different avenues for testing basic commands, plugins and third party software.

Setup

If you are testing from a system you use for other purposes (which we don't usually recommend), BACK UP your important data. Every system change is potentially risky, be prepared.

  • Optionally, install a current DNF 2 snapshot from this COPR repo - testing with both the current officially packaged DNF 2 and a more recent snapshot is useful:
    • dnf copr enable rpmsoftwaremanagement/dnf-nightly
    • dnf update dnf
  • testing scenarios:
    • anaconda installation
    • upgrade from previous Fedora version
    • core functionality: install, upgrade, remove, repoquery
    • dnf-plugins: copr, system-upgrade, download
    • third party software: mock, yumex

How to test

  • Install updates from enabled repos: sudo dnf update
  • Install, update and remove packages: sudo dnf (install
  • A list of all commands is available here, as time permits, test out various subcommands and note any odd behaviours or undocumented differences between yum, DNF 1.x and 2.x
  • Testing yum2dnf compatibility:
    • Run any use case you can think of using yum: yum [option] foo

Expected Results

  • If updating to a snapshot from the COPR repo, the repo should enable and the update install successfully
  • dnf update should update the system successfully
  • Commands listed at [1] should work fine
  • DNF 2.0 should be able to handle yum operations