containers / containers/Demos

Calling ‘rpm -i’ might fail at some Linux

Open
#53 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
84
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Scripts in directory ‘podman_cli’ check for an installed podman
calling ‘rpm -i’. As not all Linux systems have rpm installed, that
might fail. Suggest to use POSIX command ‘type’ instead.

There is also an error WRT test in following line. Replace double
brackets by single one.

Example error when running podman_pause_unpause.sh:

./podman_pause_unpause.sh: 24: rpm: not found
./podman_pause_unpause.sh: 25: [[: not found

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the scripts under podman_cli, including podman_pause_unpause.sh, and inspect how they check for an installed podman and test conditions. Replace the rpm-based check and double-bracket test syntax as described, then run the affected scripts on a system without rpm to confirm they no longer produce the reported errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.