INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

3.png0.png7.png1.png5.png8.png7.png
Today229
Yesterday863
This week4102
This month22100
Total3071587

Visitor Info

  • IP: 3.15.34.105
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

2
Online

środa, 25 grudzień 2024 03:40

How to Check CentOS Version

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

How to Check CentOS Version From Command Line

lsb Command to Display Details of CentOS Linux Release

LSB (Linux Standard Base) is a joint project of several Linux distributions to standardize software system structure. One of the commands available from the command line lsb_releaseThe output will indicate which OS version you are running.

1. Before you can use lsb commands, you have to install the package first. Use the following command:

# sudo yum install redhat-lsb-core 

2. Type in your sudo password to authorize the installation and then press Y and Enter to confirm.
3. Once you have installed it, you can check your CentOS/REHL version as shown with the command:

# lsb_release -d 
or
# lsb_release -a



Find CentOS Version with the hostnamectl Command CentOS version 7 and next distributions,
hostnamectl command is used to query and set Linux system hostname, and show other system related information, such as operating system release version
It displays information from the
/etc/centos-release file,
uname –a file and others.
In addition to version number, it indicates which Linux kernel your system is using.
To see these specifics, use the command:
# hostnamectl



Find CentOS Version with RPM - RPM (Red Hat Package Manager) is a popular open-source and core package management utility for Red Hat based systems like (RHEL, CentOS, Fedora).
With the rpm command, you can find out the full package name and the release version of CentOS you are running.
Use the command:
# rpm –qa centos-release
or
# rpm -ql centos-release | grep release$
or
# rpm -qf /etc/redhat-release


Check CentOS Version in Release File To check which Linux distro and major release version you have installed,
open the release file using the command:
# cat /etc/os-release
The output reveals the name of the operating system, its major release version,
and other specifics, as displayed in the image below.

Check Linux Kernel Version in CentOS Knowing the kernel version you are running is often as useful as finding the release version.
Find out which Linux kernel version you running, with the command:
# uname –r
or
# uname -s -r
The output you receive is the version number of the kernel of your operating system.

The 4 files shown below provides the update version of the CentOS/Redhat OS.
/etc/centos-release
/etc/os-release
/etc/redhat-release
/etc/system-release


Search