+4 votes
206 views
How to know the version of Red Hat installed RHEL

in Linux / Unix by (551k points)
reopened | 206 views

1 Answer

+5 votes
Best answer

1. View the Red Hat version using the file / etc / redhat-release
2. View the Red Hat version using the / etc / os-release file
3. View the Red Hat version using the lsb_release command
4. View the Red Hat version using the file / etc / issue
5. View the Red Hat version using the hostnamectl command

Linux is one of the most complete and comprehensive operating systems that exist today as it has a series of options to select based on personal or corporate approach, from this different roles and services are offered and one of the most distributions used at the enterprise level is Red Hat (RHEL)..

Red Hat Distributions
Red Hat offers various types of distributions each based on the type of organization. Some versions are:
  • Red Hat Enterprise Linux Atomic Host
  • Red Hat Enterprise Linux Server for High-Performance Computing (HPC)
  • Red Hat Enterprise Linux for Power
  • Red Hat Enterprise Linux for IBM z Systems
  • Red Hat Enterprise Linux for SAP Applications and more.

Red Hat Enterprise allows us a more exponential function of our company by using the cloud for different functions such as containers , private clouds or virtual ones. With RHEL we will have applications at any time we need including desktop options and even developer utilities.

Red Hat features
Red Hat offers us features such as:
  • It has alliances with Oracle, SAP Hana, Microsoft SQL Server, Postgres in order to carry out machine learning tasks.
  • Its design has been optimized to support and manage critical workloads of databases.
  • Integrates a secure platform in cloud-based infrastructure.
  • It is compatible with virtualized, private and public platforms.

Now, something basic that as system administrators or personnel involved in the IT area is knowing with certainty what type of version of Red Hat we are using since this is necessary for tasks such as:

Advantages of knowing the Red Hat version
  • Receive support
  • Manage updates
  • Provide precise support based on the version used
  • Have the appropriate drivers
  • Audit tasks and more.

Through this tutorial we will learn to identify the version of Red Hat used..


1. View the Red Hat version using the file / etc / redhat-release


This method is one of the simplest since it is enough to use the cat command to display the contents of the / etc / redhat-release file in which the current version of Red Hat is hosted. Simply execute the following:
 cat / etc / redhat-release 
image

2. View the Red Hat version using the / etc / os-release file


Another of the Red Hat files where detailed version information is stored is the / etc / os-release file, this file contains operating system identification data.
Step 1

To use this method we execute:
 cat / etc / os-release 
Step 2

When executing this command we will obtain details such as:
  • Operating System Name
  • Version used
  • System id
  • Used platform
  • Developer URL
  • CPE name and more
image

3. View the Red Hat version using the lsb_release command


The lsb_release command prints certain information from LSB (Linux Standard Base) and the distribution currently used.
Step 1

To use this command you must first be installed by running:
 sudo yum install redhat-lsb-core 
image
Step 2

There we enter the letter and to confirm the download and installation and during the process it will be necessary to confirm a series of questions: image
Step 3

Once installed we will execute the following:
 lsb_release -a 
image
Step 4

There we find details like:
  • LSB version
  • Developer ID
  • Operating System Name
  • Version
  • Coded name

4. View the Red Hat version using the file / etc / issue


The / etc / issue file is a plain text file that will accept some Escape sequences in order to insert information about the current system. To see its content we execute the following:
 cat / etc / issue 
image

5. View the Red Hat version using the hostnamectl command


Finally, the hostnamectl command gives us a series of specific details about both the machine and the system used.
Step 1

For this method we execute:
 Hostnamectl 
Step 2

As a result we will have details such as:
  • Hostname
  • Used chassis
  • Machine id
  • Boot ID
  • Virtualization type
  • Operating System Used
  • Kernel version
  • Architecture used
image

With any of these options it will be possible to define with certainty which version of Red Hat we are using.


by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Jul 2, 2020 in Linux / Unix by backtothefuture (551k points) | 468 views
+4 votes
1 answer
+5 votes
1 answer
+5 votes
1 answer
+5 votes
1 answer
asked Mar 29, 2021 in Linux / Unix by backtothefuture (551k points) | 180 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,632 questions
10,764 answers
510 comments
3 users