Skip to main content

Scan for Viruses under Linux with AVG Free Antivirus

Most of us run multiple Operating Systems on our PC's and are connected to LAN with machines running different Operating Systems. Now, Linux even though is sort of immune to viruses (there are few viruses, and Linux can get infected ) most of Desktop Linux users don't need Anti virus tool, but there are people who run Windows and there are umpteen number of Viruses, Worms and Trojans for Windows and removing them can be difficult.

Running Antivirus tool on Linux can be especially helpful in such cases , searching and removing viruses from a different Operating System would definitely help speed up the process and prevent Viruses from interfering with AntiVirus's scan process, also for PC's connected to LAN, Anti virus for Linux could detect any virus laden file transfer prompting one to take appropriate action and prevent virus from spreading to other PC's on the LAN.

There are couple of AntiVirus tool available on Linux, and in this article I would look into AVG Free Antivirus, which is one of the most user friendly of the Lot and offers a simple , intuitive interface.

Installing AVG Free Antivirus on Ubuntu

AVG provides a debian package along with packages for other distributions that you can download from this site , Or if you are on Ubuntu you can issue the following command in the Terminal (Application -> Accessories -> Terminal ) window to install AVG Free Antivirus.

sudo dpkg -i avg75fld-r51-a1243.i386.deb
Finally , Once you have install AVG Free launch it's GUI Frontend from (Applications -> Accessories -> AVG for Linux Workstation ).

AVG Antivirus Linux Frontend

The AVG Free version that you have downloaded and installed contains Old Virus definitions and needs to be updated which you can easily do by clicking on the Update button.
AVG Antivirus Updating itself

Now, once AVG has updated itself you can start scanning your drive for Viruses. You might though like to configure few of AVG Antivirus settings which you can do easily from (Service -> Program Settings ).
Different AVG Antivirus settings

To scan click on the Test button and select the folder/drive you want to scan. However , one thing I disliked about AVG Free anti virus was that it does not offer any option to remove scanned Viruses ( You would have to buy a commercial version of the AVG to enable removing of viruses). You would either have to go to the path and delete the infected file yourself or use some other Virus scanner on Windows to remove viruses. I looked into the manual for options to enable removing viruses or at least quarantining infected file and found we could do by modifying configuration file , I tried on my system but it sadly did not work.
Scanning for viruses , and final test result.

The Test result of Virus scan are stored with names of virus , date/time and location where virus was found stored in the database. The Test Result can be accessed by clicking on Test Result button in the front end of AVG.

Virus Scan test result archive

: Antivirus on Linux is not essential, still it is useful addition to your desktop arsenal especially if you are computer is part of a network with Windows computers. AVG Free though is limited with its lack of ability to disinfect virus laden files, still AVG Free is one of the most user friendly Antivirus solution available on the Linux platform.

Article Written by : Ambuj Varshney (
For Linux on Desktop Blog ,
(C) 2009 , Ambuj Varshney


  1. works pretty good remotely , on the commandline. avgupdate -o for online virus db update, and avgscan path to start the scan :)

  2. Looks cool. I have a few clients who insisted on having a GUI on their Linux server, maybe I can install AVG so they can do manual virus scans on their file server without going to a CLI.

  3. is there an amd64 version for 64bit users?

  4. Anonymous7:57 PM

    I've tried AVG for Windows and now the Linux (debian) version. The windows version worked much more smoothly and offered more features. In the Linux version, I had conflicting results between the GUI virus report and the test results window. The GUI claimed that a virus was found but the 2 stored test results I had both said there were no viruses. It does not seem to perform consistently for me regardless of whether I am logged in as Root or not. It also proved to be more difficult to install than other packages from the user interface (with admin priviledges). Updates must be done as root. Perhaps logging in as root for the entire install would have made a difference. But an inexperienced user may never figure out how to configure a root password, etc.

    I had better luck/ ease of installation/ and accuracy with versions of Avast for both Windows and Linux. Although I preferred the Flashy of packing of AVG, in the end, I had to go with Avast.

  5. Anonymous6:37 PM

    Installed on Ubuntu but can't find any GUI.

  6. Anonymous7:11 AM

    Installed on Ubuntu but can't find any GUI. how do I start the GUI?

  7. Anonymous9:21 PM

    +1. It doesn't exist perhaps.

  8. Anonymous1:22 PM

    I had to use
    avgct1 --start to make it work as in to turn it on

    for updating(I recommend setting them as an alias)
    avgupdate --priority 2

    avgupdate -p 3

    avgupdate -p 4

    for scanning
    avgscan -H /

    avgscan --heur /

  9. I am amazed to see the matters you are offering on Linux.
    1.Eventhough I am neither a computer guy nor seen a Linux machine in my life , recently we tried to install Ubuntu in my system because of viruses.
    At that time I read that CLAMWIN OR CLAMAV seemed to be better Antivirus tools.I seek your opinion.
    2.I am having Reliance ZTE AC2726 wireless Modem.Could you pls tell me will it work with Ubuntu 9.04
    and virtual box. ?

  10. Thanks for an interesting post!

    I am looking for a solution for this situation: A Windows machine freezes totally and does not boot. I start it using a Puppy Linux live-CD so to speak.

    Now I would like to find an online virus and spyware scanner which would scan the internal hard disk for viruses etc.

    So far I have not found anyone supporting Linux at all.

    I could of course rebuild the boot CD to contain Clam or AVG - the latest version of course - but it is a bit cumbersome.

    Could someone perhaps suggest a smart solution, please? It should be a simple and geek-free solution since the persons needing this are usually not at all into these things ...:)

    Best wishes



Post a Comment

Popular posts from this blog

13 Things to do immediately after installing Ubuntu

In this article i describe some of the things to do immediately after installing ubuntu on your machine . Since most of the people reading this would be shifting from Windows to Linux with a system dual booting so i would focus more on making transition easy from Windows to Linux.

Creating Your ultimate Ubuntu 7.10 Desktop

Ubuntu 7.10 Codenamed Gusty Gibbon was released few weeks back with much fanfare ,now Ubuntu for past couple of years has been one of the most popular Desktop Linux distributions . Ubuntu 7.10 includes a number of features , applets and Wizards to simplify desktop Linux experience however because of many licensing restrictions it does not include out of the box support for popular audio/video codecs and many commercial but good applications . Also because of the limitation of trying to accommodate all kind of applications on single CD Ubuntu comes with a limited set of applications .

Now , i often have arguments with my friends who are new to computers that windows is…

Over 16 Small Games For Ubuntu Linux

Over 16 Small Games For Ubuntu Linux

Ubuntu Linux is one of the most popular Linux distribution , it is especially popular among Linux newbies and windows refuges . Now Ubuntu Linux does come with a descent set of applications , still there is a scope for including some more quality applications and especially games . Now in this tutorial i will show you how to install a large number of small , easy and less resource hungry games on Ubuntu Linux with screen-shots of games .

1. Rocks 'n' Diamonds

Rocks 'n' Diamonds is a Boulderd*sh game for X11 with more than just the falling rocks and diamonds of its namesake. The object is still to collect all the diamonds (and emeralds), then get to the exit before time runs out. But your character must make use of bombs, spaceships, and many other elements in order to fill his quota of jewels.

Installation : -

Type the following command in the terminal window


Making Music(Beats) on Linux/Ubuntu with Hydrogen

I am going to review a couple of Music Making Softwares for Linux and am starting with the simplest and one of the best!HYDROGEN. Hydrogen basically is a pattern based drum programming software which in layman terms means, it allows you to make your own beats.And in case you aren't much into music, you might be wondering “what the hell will i do with this piece of software”...well here is a word from my friends who've tried this: “Its pretty fun playing with this software, n even without knowing much, you could actually MAKE SUM MUSIC!!!”

There was this software called Acoustica Beatcraft(for windows) which actually introduced me to this beat making stuff and I was quite interested, but sadly it was too costly for me to buy it. So i was stuck using the trial version of the software and sadly as soon as i got the grip of the software the trial expired, and so my search began for software which would do the stuff for me and luckily i found this amazing piece of software HY…