Stay Up-to-Date with the Latest Fedora Version – It Should Just Work!

If you are logged into a Fedora Linux box via a command line, you may be wondering what version of Fedora it’s running. Fortunately, finding out this information is easy and can be done with just a few simple commands.

One way to check the version of Fedora is to use the `cat /etc/os-release` command. This command will display a file that contains information about the current operating system, including the version number. For example, if you run this command on a Fedora 32 system, you will see output like this:

“`

NAME=Fedora

VERSION=”32 (Workstation Edition)”

ID=fedora

ID_LIKE=rhel

PRETTY_NAME=”Fedora 32 Workstation”

VERSION_ID=”32″

HOME_URL=”https://www.fedoraproject.org/”

BUG_REPORT_URL=”https://bugs.launchpad.net/fedora”

PRIVACY_POLICY_URL=”https://www.fedoraproject.org/privacy-policy”

VERSION=”32 (Workstation Edition)”

“`

From this output, you can see that the version of Fedora is 32 (Workstation Edition).

Another way to check the version of Fedora is to use the `lsb_release` command. This command will display a list of information about the current operating system, including the version number. For example, if you run this command on a Fedora 32 system, you will see output like this:

“`

No LSB features are available.

Distributor ID: Fedora

Description: Fedora Linux distribution

Release: 32

Codename: Workstation

“`

From this output, you can see that the version of Fedora is 32 (Workstation Edition).

You can also use the `sudo dnf info` command to check the version of Fedora. This command will display information about the current package manager and the version of Fedora it’s running on. For example, if you run this command on a Fedora 32 system, you will see output like this:

“`

Package Manager: DNF (Dandified YUM)

Installed Packages:

fedora-release: 32:1.fc32

gnome-desktop: 3.30.2-1.fc32

gnome-panel: 3.30.2-1.fc32

gtk2: 2.24.27-1.fc32

kernel: 5.14.0-32-generic

“`

From this output, you can see that the version of Fedora is 32 (Workstation Edition).

In summary, there are several ways to check the version of Fedora you are running on a command line. You can use the `cat /etc/os-release` command, the `lsb_release` command, or the `sudo dnf info` command to find out this information. No matter which method you choose, it should just work and provide you with the version number of Fedora you are running.