How to Find Linux Mint Version and Codename

      No Comments on How to Find Linux Mint Version and Codename

hello guys, and welcome to another Linux tutorial. In this tutorial, I’m going to show you
two different ways you can find your Linux Mint version and codename. As a Linux user you should know how to find this information as this is very important for many task for example: software installation, upgrades, etc. Here I’ll cover two ways we can to this. The first one using the graphical interface, and the second one using the command line.

logo_linux-mint

Find version / code name using graphical interface:
1- Click on menu
2- Click on “System Tools”
3- Click on “System Monitor”
4- Click on “System” tab

systmemonitor

Here we can find general information about the system.
Linux Mint release version
Codename
Platform (32/64) bit
Kernel version
Desktop Manager

Find version / code name using the terminal:
1- Click on “Menu”
2- Click on “Accessories”
3- Click on “terminal”
4- Next enter command:

$ cat /etc/linuxmint/info
RELEASE=17.3
CODENAME=rosa
EDITION="MATE 64-bit"
DESCRIPTION="Linux Mint 17.3 Rosa"
DESKTOP=MATE
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_rosa_mate_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_rosa_mate.php
USER_GUIDE_URL=help:linuxmint
GRUB_TITLE=Linux Mint 17.3 MATE 64-bit

As you can see, we get the same information as the first method. However, using the command to get Linux version has the benefit to use it in a script. For example, if we wanted to get the version name and code name within a script, we could do something like…

$ release=$(grep 'RELEASE=' /etc/linuxmint/info | cut -d= -f2)
$ echo $release
17.3
$ codename=$(grep 'CODENAME=' /etc/linuxmint/info | cut -d= -f2)
$ echo $codename
rosa

The above commands first assigns the value 17.3 to the variable release. Then it echo the result to the screen. It uses the file /etc/linuxmint/info to extract this information. The next example, uses the same procedure to extract the value “Rosa” and assign to variable $codename. These can be used within a script.

Share This!

Leave a Reply

Your email address will not be published.