From Fedora Project Wiki

(Created page with "{QA/Test_Case |description=This test case ensures that the `pkcon` command can effectively search for a package and retrieve its details using the PackageKit. |setup=Ensure that {{package|PackageKit}} is installed and running on your Fedora system. |actions= # Open a terminal. # Execute the command `pkcon search name firefox` to search for the "firefox" package. # Next, identify the package ID for the firefox package from the search results. # Now, execute the command `p...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{QA/Test_Case
{{QA/Test_Case
|description=This test case ensures that the `pkcon` command can effectively search for a package and retrieve its details using the PackageKit.
|description=This test case ensures that the `pkcon` command can effectively search for a package and retrieve its details using the PackageKit.
|setup=Ensure that {{package|PackageKit}} is installed and running on your Fedora system.
|setup=Ensure that {{package|PackageKit}} is installed and running on your Fedora system.
Line 7: Line 7:
# Next, identify the package ID for the firefox package from the search results.
# Next, identify the package ID for the firefox package from the search results.
# Now, execute the command `pkcon get-details [PACKAGE_ID]` replacing `[PACKAGE_ID]` with the actual package ID from the previous step to get details about the firefox package.
# Now, execute the command `pkcon get-details [PACKAGE_ID]` replacing `[PACKAGE_ID]` with the actual package ID from the previous step to get details about the firefox package.
# Execute 'pkcon get-packages' to get list of all available packages.
# Execute `pkcon get-packages` to get list of all available packages.
# Execute `pkcon remove package` to remove packages.
# Execute `pkcon refresh` to refresh cache.
|results=
|results=
# The command `pkcon search name firefox` returns a list of packages containing the word "firefox".
# The command `pkcon search name firefox` returns a list of packages containing the word "firefox".
Line 14: Line 16:
|optional=Optionally, explore other `pkcon` commands like installing, updating, and removing packages to check their functionality.
|optional=Optionally, explore other `pkcon` commands like installing, updating, and removing packages to check their functionality.
}}
}}
[[Category:Package_PackageKit_test_cases]]
[[Category:Critical_path_test_cases]]

Latest revision as of 16:37, 12 August 2023

Description

This test case ensures that the pkcon command can effectively search for a package and retrieve its details using the PackageKit.

Setup

Ensure that Package-x-generic-16.pngPackageKit is installed and running on your Fedora system.

How to test

  1. Open a terminal.
  2. Execute the command pkcon search name firefox to search for the "firefox" package.
  3. Next, identify the package ID for the firefox package from the search results.
  4. Now, execute the command pkcon get-details [PACKAGE_ID] replacing [PACKAGE_ID] with the actual package ID from the previous step to get details about the firefox package.
  5. Execute pkcon get-packages to get list of all available packages.
  6. Execute pkcon remove package to remove packages.
  7. Execute pkcon refresh to refresh cache.

Expected Results

  1. The command pkcon search name firefox returns a list of packages containing the word "firefox".
  2. The firefox package should be among the results listed.
  3. The pkcon get-details [PACKAGE_ID] command should return detailed information about the firefox package including version, size, and description.

Optional

Optionally, explore other pkcon commands like installing, updating, and removing packages to check their functionality.