Login or ssh to your CentOS 8 server and execute following dnf or yum command to install ‘ epel-release‘ rpm package. Install and Enable EPEL Repository on CentOS 8.x Server Run following dnf or yum command to verify whether EPEL repository is enabled or not, ~]# dnf repolist epel Once epel rpm package is installed successfully then it will automatically enable and configure its yum / dnf repository. Join the nixCraft community via RSS Feed, Email Newsletter or follow on Twitter.Output of above command would be something like below, He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. For more information please see this page here and here.
This page showed how to install Python 3.6 or Python 2.7 on RHEL 8 using the yum command. Sudo alternatives -remove python /usr/bin/python3 Conclusion Sudo alternatives -remove python /usr/bin/python2 Python -version How do I remove python default on RHEL 8?
Sudo alternatives -set python /usr/bin/python2 Similarly one can set Python 2 as default version for RHEL 8 based desktop or server environment from the bash shell: Sudo alternatives -set python /usr/bin/python3 One can set Python 3 as default by running the simple command: Is this ok : How do I set default version of Python on RHEL 8? Last metadata expiration check: 0:09: 22 ago on Tuesday 05 March 2019 02:09: 48 PM EST. Updating Subscription Management repositories. Verify installation by typing the type command/ command command: Type the following yum command to install Python 3 on Red Hat Enterprise Linux version 8: You can show detailed information before installing package as well: Sudo yum search python2 | grep 'python2.x86_64' Try any one of the following syntax along with grep command:
How to find out Python package names on RHEL 8 Let us see all commands and example in details.
To install python 3 on RHEL 8, run: sudo yum install python3.Search for python package in RHEL 8, run: sudo yum search python3.Open the Terminal application or window.The procedure for installing Python 3 on RHEL 8 is as follows: How to Install Python 3 / Python 2.7 on RHEL 8