From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case is to test dnf5 repoquery / repolist commands |setup=Install the pre-release version of Fedora 38 |actions= * Install dnf5 using ‘dnf -y install dnf5’ * Run dnf5 repolist --all * Run dnf5 repolist * Run dnf5 repolist --disabled * Compare the installed packages output from dnf5 repoquery --installed with output from rpm. ** <nowiki>diff -y <(rpm --queryformat "%{NAME}-%{EPOCHNUM}:% {VERSION}-%{RELEASE}.%{ARCH}\n" -...")
 
No edit summary
Line 3: Line 3:
|setup=Install the pre-release version of Fedora 38
|setup=Install the pre-release version of Fedora 38
|actions=  
|actions=  
* Install dnf5 using ‘dnf -y install dnf5’
* Install dnf5 using `sudo dnf -y install dnf5`
* Run dnf5 repolist --all  
* Run `dnf5 repolist --all`
* Run dnf5 repolist  
* Run `dnf5 repolist`
* Run dnf5 repolist --disabled  
* Run `dnf5 repolist --disabled`
* Compare the installed packages output from dnf5 repoquery --installed with output from rpm.  
* Compare the installed packages output from `dnf5 repoquery --installed` with output from `rpm`.  
** <nowiki>diff -y <(rpm --queryformat "%{NAME}-%{EPOCHNUM}:% {VERSION}-%{RELEASE}.%{ARCH}\n" -qa | sort) <(dnf5 repoquery --installed | sort) | grep '[<>]'</nowiki>  
<pre>
* Pick any package and query the information about it using dnf5 repoquery --info <package>  
diff -y <(rpm --queryformat "%{NAME}-%{EPOCHNUM}:%{VERSION}-%{RELEASE}.%{ARCH}\n" -qa | sort) \
<(dnf5 repoquery --installed | sort) | grep '[<>]'
</pre>
* Pick any package and query the information about it using `dnf5 repoquery --info <package>`
* Exploratory testing: explore the help section of dnf5 repoquery and run it with options of your choice  
* Exploratory testing: explore the help section of dnf5 repoquery and run it with options of your choice  


|results=
|results=

Revision as of 15:59, 7 March 2023

Description

This test case is to test dnf5 repoquery / repolist commands

Setup

Install the pre-release version of Fedora 38

How to test

  • Install dnf5 using sudo dnf -y install dnf5
  • Run dnf5 repolist --all
  • Run dnf5 repolist
  • Run dnf5 repolist --disabled
  • Compare the installed packages output from dnf5 repoquery --installed with output from rpm.
diff -y <(rpm --queryformat "%{NAME}-%{EPOCHNUM}:%{VERSION}-%{RELEASE}.%{ARCH}\n" -qa | sort) \
<(dnf5 repoquery --installed | sort) | grep '[<>]'
  • Pick any package and query the information about it using dnf5 repoquery --info <package>
  • Exploratory testing: explore the help section of dnf5 repoquery and run it with options of your choice

Expected Results

  • Dnf5 package is installed successfully
  • Dnf5 repolist --all prints all repositories and includes the information whether the repository is enabled or disabled
  • Dnf5 repolist prints only enabled repositories
  • Dnf5 repolist prints only disabled repositories
  • List of packages is the same (with the allowed exception of gpg-pubkey* packages)
  • Dnf5 repoquery --info prints the detailed information about the package
  • Dnf5 repoquery executed with options behaves according to the help of man page.