|
Hello all, I am new to use the CentOs on My PC, and i want to check the version of the CentOs, is there any way to check the version, Please help
Thank you
Life Does not Give Second Chance so make it Perfect in the First Attempt
|
|
Hi all, from the last few days i also search for this on the Internet and I found this post, here author shares complete information about how to check the centos version, this article helps me a lot, and my problem is solved now.
Thank you
Life Does not Give Second Chance so make it Perfect in the First Attempt
|
|
Hey, Gulshan Negi
This is a nice question There are many reasons why you should know the CentOS version you are running. For example, if you are troubleshooting a system issue, you will want to know. Also, it’s useful to ensure your Linux operating system is up-to-date. Outdated software can cause serious security risks and vulnerabilities. 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 is lsb_release. The 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. View CentOS version information with the command: lsb_release -d Find CentOS Version with the hostnamectl Command CentOS version 7 and above has the hostnamectl command, which can query and change the hostname and other related settings. It displays information from the /etc/centos-release file, uname –a file and others. You can check also for more info: here 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 is a free and open-source package manager created for Red Hat Linux and its related distributions. 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 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 The output you receive is the version number of the kernel of your operating system. In the example displayed below, 3.10.0.957. |
| Free forum by Nabble | Edit this page |
