From Fedora Project Wiki

Revision as of 16:20, 13 March 2023 by Sumantrom (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case verifies the functionality of the "dnf enable" and "dnf disable" commands. |setup=Install the latest version of Fedora on a bare metal system using the default Anaconda settings except to reclaim all disk space in the process. |actions= ===== To enable a repository: ===== * Open a terminal window * Type "dnf config-manager --disable <repository-name>" and press Enter, where <repository-name> is the name of a repository that is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case verifies the functionality of the "dnf enable" and "dnf disable" commands.

Setup

Install the latest version of Fedora on a bare metal system using the default Anaconda settings except to reclaim all disk space in the process.

How to test

To enable a repository:
  • Open a terminal window
  • Type "dnf config-manager --disable <repository-name>" and press Enter, where <repository-name> is the name of a repository that is currently disabled.
  • Type "dnf enable <repository-name>" and press Enter.
  • Observe the output.
To disable a repository:
  • Open a terminal window
  • Type "dnf config-manager --enable <repository-name>" and press Enter, where <repository-name> is the name of a repository that is currently enabled.
  • Type "dnf disable <repository-name>" and press Enter.

Observe the output.

Expected Results

The following must be true to consider this a successful test run:

To enable a repository:
  • The "dnf enable" command executes without error.
  • The output confirms that the repository has been enabled.
  • Packages from the enabled repository are now available for installation using DNF.
To disable a repository:
  • The "dnf disable" command executes without error.
  • The output confirms that the repository has been disabled.
  • Packages from the disabled repository are no longer available for installation using DNF.

Optional

Optionally, perform exploratory testing by enabling and disabling different repositories and verifying that the expected packages are available or unavailable for installation. Additionally, test the commands with different options, such as "--verbose" and "--all", to verify their functionality.