RECOMMENDED Amnezia Premium: Works Where Other VPNs Fail

Unblockable AmneziaWG 2.0 & XRay protocols. Perfect for lag-free access to ChatGPT, Claude AI, global freelance marketplaces, and restricted streaming networks with clean RAM-only privacy.

How to know the version of CentOS 7

You may need version of your operating system when you need to solve some problem with Windows or when you leave a question on the forum about how to configure anything.

In this article, we’ll look at how to know the version of CentOS 7, to see the level of updates, as well as to know the kernel version, which is now used. The instructions are written for CentOS 7, but it will be suitable for earlier versions of the distribution files containing the basic information is the same in many versions.

How to know the version of CentOS 7

Basic information about the distribution and its version are stored in these four files:

  • /etc/centos-release
  • /etc/os-release
  • /etc/redhat-release
  • /etc/system-release

In my case it is CentOS 7.6.1810:

cat /etc/centos-release

Have CentOS 7 currently used rolling-upgrade system, this means that when a new release you do not need to reinstall the system, but rather only update it regular utility yum. But it is only in the seventh version. It is therefore important not only that this is CentOS 7, but other numbers matter. In the rest of the files too, is this information:

cat /etc/redhat-release

cat /etc/system-release

In the file /etc/os-release is only stored the information that this is the seventh version of CentOS 7:

cat /etc/os-release

All these four files belong to the package centos-release. So you can recognize the version of the distribution, even seeing the version of this package:

rpm-qf /etc/redhat-release

The CentOS version and kernel version can be viewed using a utility hostnamectl:

hostnamectl

Another way to see the version of CentOS is a utility lsb_release. It is in the package redhat-lsb and not installed by default. To install it run:

yum install redhat-lsb

You can then run the command:

lsb_release -d

To view the full information, use the-a option:

lsb_release -a

How to see kernel version in CentOS 7

As in other distros, in CentOS to view information about the core network, use the uname. To view all available information, use the-a option:

uname-a

To view only the kernel, specify the-r option:

uname-r

And to find out the date and time the kernel compilation, run:

uname -v

Insights

In this small article we discussed how to see the version of CentOS 7 in a variety of ways. What other ways do you know to view the version of the distribution? Write in the comments!

Source: losst.ru

🛠️ Top Temporary VPS for Testing & Experiments (2026)

Need a fast cloud server for a few hours or days? Deploy an isolated testing environment, run your scripts, and destroy it without any monthly commitments. Secure payments via Crypto (USDT) & PayPal supported.

AÉZA — Ultimate Testing Environment Flexible rates: from €0.01/hr depending on the billing period (the longer you rent, the cheaper it gets).
Exclusive Welcome Bonus: Get an extra 15% on your first balance top-up within 24 hours after registration.
Deploy on Aeza
Friendhosting — High-Storage VDS Hourly VDS infrastructure (from €0.03/hr) deployed across massive global locations.
• Best-in-class Storage VDS configurations with huge disk space for heavy data testing.
Deploy on Friend
Zomro — Premium Daily Node Daily billing model starting at just €0.16/day (~€0.007/hr) for optimal cost control.
• High-speed hardware platform with a stable presence in the Netherlands (Europe).
Deploy on Zomro
Rork

Linux hobbyist into networking and digital privacy. I use this hub to translate and store technical notes on sysadmin tasks and anonymity tools. Tech should work for people, not the other way around.

Rate author
Add a comment