Rex::Pkg::Redhat is_installed() dosen't check the version correctly
Open
Nobody has claimed this yet.
bug
- Dominant language
- Perl
- Stars
- 737
- Forks
- 214
- PR merge metrics
- No merged PRs in 30d
Description
RHEL uses the epoch, version and release to define the "version" of a rpm. So a version would be
0:0.01-1.el6, where the epoch is optional.
is_installed() only checks the version, thereby never finding the correct package.
A possible fix would be to add a "query" method, such as Rex::Pkg::FreeBSD to find the correct package.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at Rex::Pkg::Redhat::is_installed() and inspect how it compares RPM package versions. Compare the proposed query approach with Rex::Pkg::FreeBSD, then verify that epoch, version, and release are all considered when identifying the installed package.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, perl
- Domain
- devops, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100