How to install Sophos Antivirus for Linux in Ubuntu

Sophos is completely Free Antivirus for Linux command line suite

PC security is a top-notch priority these days due to ever-increasing malware threats across all operating systems, including Microsoft Windows, Mac OS, Android, and Linux.

Windows is the highest affected in this list, while Linux the least. However, I think every Linux user should also install Antivirus software because of cross-platform data transfer between the operating systems. Though viruses made for Windows can’t infect a Linux PC, you don’t want your beloved PC to be a medium for transferring infected files.

Installing Free Sophos Antivirus for Linux in Ubuntu/Linux Mint/elementary OS

When it comes to PC security, Sophos is a highly respected and famous brand. They have made a free version for Linux that comes with a virus scanner and a removal tool. What more, it also includes a real-time scanner that can detect threats on the fly. Let’s check out how to install it on your P. This guide is tested on Ubuntu 17.10, but should also work on older versions too.

Step 1) Go to the Sophos website and download the latest copy of the Sophos Antivirus for Windows. You may have to accept their terms and provide an email ID during free registration.

Download Sophos Antivirus for Linux

Step 2) The downloaded package is a compressed archive file. It should look like sav-linux-free-9.tgz. The version number may be different based on when you download it. I’m assuming that the downloads are going here. In case it’s different in your case, navigate to it in the terminal using ‘ls’ and ‘cd’ command.

Launch ‘Terminal’ and propagate to the ‘Downloads’ directory.

Installing Sophos in Ubuntu Terminal
Installing Sophos in Ubuntu Terminal

Use ls command to list all directories to know where to navigate.

ls

Step 3) Use the cd command to go inside the ‘Downloads’ directory.

cd Downloads

Step 4) Again, ls command to see contents of ‘Downloads’ directory.

ls

Step 5) Use the tar command to extract the contents of the .tgz file. Replace the filename after -xvzf with your downloaded file name.

tar -xvzf sav-linux-free-9.tgz

Step 6) You should see the list of extracted content in the Terminal. Use the ls command to see inside the extracted content.

ls

Step 7) Use the cd command to propagate into the sub-directory.

cd sophos-av

Step 8) Use the following command to run the sh installer.

sudo sh ./install.sh

Step 9) Press <enter> and <space> to scroll to the bottom of the super long agreement and enter ‘Y’ to confirm the installation.

Step 10) You will see a prompt whether to install Sophos in /opt/sophos-av directory. That is typical of the Linux directory structure. Go ahead and press <enter>.

Where do you want to install Sophos Anti-Virus? [/opt/sophos-av]

Step 11) Next, it will ask if you want to enable on-access scanning. It is a great feature that will detect malware on the fly when transferring files. It will consume some RAM in the background, but it’s worth it.

Do you want to enable on-access scanning? Yes(Y)/No(N) [Y]

Enter ‘Y’ and press <enter>

Step 12) Choose what type of updating you want. I chose ‘s’.

Which type of auto-updating do you want? From Sophos(s)/From own server(o)/None(n) [s]

Step 13) Key in ‘f’ to select free Sophos Antivirus, which will have no support.

Do you wish to install the Free (f) or Supported (s) version of SAV for Linux? [s]

Step 14) Enter proxy info if needed. I have none, so I entered ‘Y.’

Do you need a proxy to access Sophos updates? Yes(Y)/No(N) [N]

Step 15) Installation complete!

Installation Complete
Installation Complete

Fetching free update credentials.
Installing Sophos Anti-Virus....
Selecting appropriate kernel support...
When Sophos Anti-Virus starts, it updates itself to try to find a Sophos kernel interface module update. This might cause a significant delay.
Sophos Anti-Virus starts after installation.

Installation completed.
Your computer is now protected by Sophos Anti-Virus.

Using Sophos Antivirus for Linux

Sophos Antivirus for Linux is a complete command-line tool. There is no GUI for it. Therefore, you need to know the following commands to start using it.

How to check if on-access scanning is active?

Enter the following command in the ‘Terminal.’

/opt/sophos-av/bin/savdstatus

How to start on-access scanning?

Use the following command to enable and start the on-access scanning, if found that service is inactive.

/opt/sophos-av/bin/savdctl enable
/etc/init.d/sav-protect start

How to run an on-demand scan?

Just enter the following command to start scanning your computer.

savscan /

If it finds malware, you will see a pop-up similar to this one:

Sophos Antivirus Virus Alert
Sophos Antivirus Virus Alert

Conclusion

That concludes the guide to the installation of the Sophos Antivirus on the Linux system. With a built-in real-time scanner and daily updates to the virus database, Sophos is one of the best antivirus software not only for Linux but across other cross platforms too.

I hope you find this guide useful in setting up Sophos and using it.

Kiran Kumar
Hi there! I'm Kiran Kumar, founder of FOSSLinux.com. I'm an avid Linux lover and enjoy hands-on with new promising distros. Currently, I'm using Ubuntu as a daily driver and run several other distros such as Fedora, Solus, Manjaro, Debian, and some new ones on my test PC and virtual machines. I have a day job as an Engineer, and this website is one of my favorite past time activities, especially during Winter ;). When I'm not writing for FOSSLinux, I'm seen biking and hiking on scenic trails. I hope you enjoy using this website as much as I do writing for it. Feedback from readers is something that inspires me to do more and spread Linux love!. If you find a time, drop me an email or feedback from the 'Contact' page. Or simply leave a comment below if you found this article useful. Have a good day!

10 COMMENTS

  1. Can you please help me? i have installed Sophos antivirus for Ubuntu 16.04. It has installed without any problem, but on-access scanning is not activated. I have tried to activate it through this command “/opt/sophos-av/bin/savdctl enable”. But it shows me Failed to activate on-access scanning. Will you please help me out from this problem.

  2. Hello! Thank you very much for the perfect explanation!
    It was very easy to install sopho after reading your post. But, have you any idea why i have this messages in the terminal when i try to enable and start on-access scanning?

    I’m running Linux Mint 19.1 Tessa

    Thank you again!

    /opt/sophos-av/bin/savdctl enable
    Failed to enable on-access scanning.

    /etc/init.d/sav-protect start
    bash: /etc/init.d/sav-protect: No such file or directory

  3. Thank you very much. It took a little searching but once I found this page it was really quick to follow your clear instructions.
    Very helpful Indeed.

  4. Something critical – how to update to latest virus definitions:

    $ sudo /opt/sophos-av/bin/savupdate
    Successfully updated Sophos Anti-Virus from sdds:SOPHOS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

STAY CONNECTED

23,533FansLike
365FollowersFollow
16SubscribersSubscribe

LATEST ARTICLES

Top 10 Reasons to use Xfce as your Desktop Environment

There are many choices for desktop environments for Linux based operating systems. Mainly, you can install any DE of your choice on most of the Linux based distributions, even if they are not offered as a package officially. In our recent articles, we discussed the best of KDE and Cinnamon. In this article, we wish to present to you the top reasons why you should consider Xfce as your desktop environment.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...

MUST READ

Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

How to create a Live Linux USB drive using Etcher

In the Linux community, one thing is common between almost all of the users: trying out different Linux distributions. Most of the Linux based distributions have a great way of being tested as they provide ISO images for creating a Live USB.

Top 10 reasons to use KDE as your Desktop Environment

In this article, we will take a look at yet another popular desktop environment, KDE. It's one of the most amazing Linux Desktop environments available in the market.

15 Tar command in Linux uses with examples

Tar is a famous utility that is basically used for collecting multiple files in a single archive. This file is often called a 'tarball'. Today, we are going to tell you about the different things you can do with tarballs using the tar command, with practical examples.

The 10 Best Linux Server Distros For Home And Businesses

By the year 2020, it is estimated that there are close to 600 Linux distributions in the market. It includes both servers and Desktop versions; therefore, if you are looking for lightweight Linux distribution for your old PC or a reliable desktop version for employees in your organization, you may be overwhelmed with the number of choices for finding one for your use.