RHEL is an open-source operating system (OS) for critical application environments whether it is deployed on the cloud or on-premise. RHEL reduces friction, time, and resources with the unified operating system. It is a very simple process to install any application on RHEL, and this post will teach you how to install python on AWS RHEL.
Let’s start with the installation of python on AWS RHEL:
Install Python on AWS RHEL
To install python on RedHat Enterprise Linux (RHEL), you need to create a virtual machine using RHEL, and it can be done by clicking on the “Launch Instances” button on the EC2 console:
Type the name for the virtual machine and select “Red Hat” as a machine image:
After that select the instance type and create a key pair by clicking on the ”Create new key pair” link and then click on the “Launch Instance” button:
Once the virtual machine is created, you need to select the instance and click on the “Connect” button from the EC2 dashboard:
After that simply select the “SSH client” tab and copy the command highlighted in the screenshot below:
Now simply connect to the virtual machine by typing the command and then just change the path of the key pair from your PC and press “Enter” from your keyboard and you have connected to the RHEL virtual machine:
Now to search for the python packages simply use the following command:
This command will list all the python packages on RHEL:
To install python on RHEL simply use the following command:
This command will install the python on Red Hat Enterprise Linux:
After the installation of python, you can get its information using the following commands:
command -v python3
python3 --version
This command will show the details of the python you just installed:
You have successfully installed python on AWS RHEL:
Conclusion
It is a very easy and simple process to install python on AWS Red Hat Enterprise Linux (RHEL) using an EC2 virtual machine. You have to create an EC2 instance using the RHEL as its Machine Image and then connect to it using the SSH client. Once you are inside the RHEL, you just have to use simple commands to install python on AWS RHEL.