From Fedora Project Wiki
Description
This test case ensures that the repodata generated by createrepo_c
is usable by dnf
.
Setup
Ensure you have a directory from the previous createrepo_c
test containing the generated repodata and that dnf
is installed on the system.
How to test
- Navigate to your repository directory:
cd /path/to/my/repo
. - Add this local directory as a repository for DNF:
`echo -e "[localtest]\nname=Local test repo\nbaseurl=file:///path/to/my/repo\nenabled=1\ngpgcheck=0"
Expected Results
- You should see a new repository configuration file in
/etc/yum.repos.d/
. - The dnf repolist command should show localtest in its output.
- The final command should list the packages from your local repository without any error.
- The command to list packages should display the packages in your local repository without errors.
- The package mypackage should be installed without any issues from the local repository.
Optional
For exploratory testing:
- Try installing a package from the local repo.
- Try searching for a package in the local repo.