\/usr\/local\/<\/code> directory and download the tar.gz archive with the following command:<\/p>\n\n\n\ncd \/usr\/local\/\nsudo wget https:\/\/downloads.cisofy.com\/lynis\/lynis-2.7.3.tar.gz \n<\/pre>\n\n\n\nOn success, the command will output something that looks similar to this:<\/p>\n\n\n\n
--2019-04-13 03:08:53-- https:\/\/downloads.cisofy.com\/lynis\/lynis-2.7.3.tar.gz\nResolving downloads.cisofy.com (downloads.cisofy.com)... 37.97.194.171, 2a01:7c8:aac2:37b::1\nConnecting to downloads.cisofy.com (downloads.cisofy.com)|37.97.194.171|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 282609 (276K) [application\/octet-stream]\nSaving to: 'lynis-2.7.3.tar.gz'\n<\/pre>\n\n\n\nOnce the file is downloaded, unpack it with this next line:<\/p>\n\n\n\n
tar xf lynis-2.7.3.tar.gz<\/pre>\n\n\n\nSet the required permissions:<\/p>\n\n\n\n
sudo chmod 755 \/usr\/local\/lynis\/lynis<\/pre>\n\n\n\nYou can now run the following commands to check the Lynis version:<\/p>\n\n\n\n
\/usr\/local\/lynis\/lynis --version<\/pre>\n\n\n\nThe command will print the Lynis version number and quit:<\/p>\n\n\n\n
2.7.3<\/pre>\n\n\n\nTo check for a new version, run the following:<\/p>\n\n\n\n
\/usr\/local\/lynis\/lynis update info<\/pre>\n\n\n\n == Lynis ==\n\n Version : 2.7.3\n Status : Up-to-date\n Release date : 2019-03-21\n Update location : https:\/\/cisofy.com\/lynis\/\n\n\n2007-2019, CISOfy - https:\/\/cisofy.com\/lynis\/\n<\/pre>\n\n\n\nAt the time of writing this article, the latest Lynis version is 2.7.3.<\/p>\n\n\n\n
If there is a new update, you can update Lynis to the latest version that usually includes new features and bug fixes using the following command:<\/p>\n\n\n\n
\/usr\/local\/lynis\/lynis update release<\/pre>\n\n\n\n