Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find the version of the Fedora I use?

Tags:

linux

fedora

People also ask

How do I find the Linux os version?

The command “uname -r” shows the version of the Linux kernel that you're currently using. You'll now see which Linux kernel you're using. In the above example, the Linux kernel is 5.4. 0-26.

What type of Linux is Fedora?

Fedora is a popular open source Linux-based operating system. Fedora is designed as a secure, general purpose operating system. The operating system is developed on a six-month release cycle, under the auspices of the Fedora Project. Fedora is sponsored by Red Hat.

How do I update Fedora?

In Fedora Workstation, when the next stable release is available, a graphical notification will appear similar to the update notifications. Clicking this, or running the Software application and going to the Updates pane, will display a simple graphical interface for upgrading the system.


cat /etc/issue

Or cat /etc/fedora-release as suggested by @Bruce ONeel


You can also try /etc/redhat-release or /etc/fedora-release:

cat /etc/fedora-release 
Fedora release 7 (Moonshine)

The proposed standard file is /etc/os-release. See http://www.freedesktop.org/software/systemd/man/os-release.html

You can execute something like:

$ source /etc/os-release
$ echo $ID
fedora
$ echo $VERSION_ID
17
$ echo $VERSION
17 (Beefy Miracle)

The simplest command which can give you what you need but some other good info too is:

hostnamectl

You could try

lsb_release -a

which works on at least Debian and Ubuntu (and since it's LSB, it should surely be on most of the other mainstream distros at least). http://rpmfind.net/linux/RPM/sourceforge/l/ls/lsb/lsb_release-1.0-1.i386.html suggests it's been around quite a while.


cat /etc/*release

It's universal for almost any major distribution.