From Fedora Project Wiki

Revision as of 13:50, 7 March 2023 by Sumantrom (talk | contribs) (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" -...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 ‘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.