Skip to content

Update prerequisite instructions to work across distributions#90

Open
carlwgeorge wants to merge 1 commit intoredhat-developer:masterfrom
carlwgeorge:el8-python
Open

Update prerequisite instructions to work across distributions#90
carlwgeorge wants to merge 1 commit intoredhat-developer:masterfrom
carlwgeorge:el8-python

Conversation

@carlwgeorge
Copy link
Contributor

Specifically dnf install python doesn't work on EL8. This changes the package name to python3 and shows the command to set up the necessary alternative symlink for the python command to work later in the guide.

@xsuchy
Copy link
Collaborator

xsuchy commented Aug 8, 2022

I am not sure about the alternatives. Isn't it better to use python-unversioned-command package?


[source,bash]
----
$ dnf install gcc rpm-build rpm-devel rpmlint make python3 bash coreutils diffutils patch rpmdevtools
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are using python3 on rhel8 and python on rhel9. It should be the other way round, isn't it? The same in the other part bellow.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dnf install python works on rhel9, because python-unversioned-command provides python. I can adjust this to the actual package name if you like, it just makes the command longer for no real benefit. Since the current instructions do not work on rhel8, I was trying to change as little as possible from the previous instructions but still get things working. Longer term I'd like to send another pull request to switch the guide over to python3, which would simplify the instructions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to use python3 on both rhel8 and rhel9.

@carlwgeorge
Copy link
Contributor Author

I am not sure about the alternatives. Isn't it better to use python-unversioned-command package?

python-unversioned-command doesn't exist on RHEL 8.

Specifically `dnf install python` doesn't work on EL8.  This changes the
package name to python3 and shows the command to set up the necessary
alternative symlink for the python command to work later in the guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants