AVG on Linux


How To Install And Use AVG Antivirus In Linux

First published on July 12, 2011 at http://www.ihaveapc.com/ with 11 Comments

You can download the Linux version of the AVG manual from here:

Click here to Download the PDF manual

Here’s how to install and use AVG Anti-Virus in Linux

1. Go to http://free.avg.com/us-en/download.prd-alf and download the correct file for your distribution, DEB/RPM/TGZ

Downloading AVG Anti-Virus For Linux

2. After the file has been downloaded, open the terminal and change the directory to the folder where you have saved the downloaded file. Now issue the following command at the terminal to install the downloaded Debian package file-

sudo dpkg -i avg2013flx-r3118-a6926.i386.deb

NOTE: Don’t copy and paste the above command, check the filename, it may have been updated by the time you read this,

Installing AVG In Linux Mint / Ubuntu

Installing AVG Anti-Virus In Linux Mint / Ubuntu

3. After the installation is complete, issue the following command at the terminal –

sudo avgctl

Starting AVG Anti-virus Command Line Controller In Linux

4. Reboot your system to ensure that AVG related daemons(services) start properly.

5. After the system has rebooted, open the terminal and issue the following command to update the AVG Anti-Virus definition files –

sudo avgupdate

Updating AVG Anti-Virus In Linux

6. After the update is completed, issue the following command at the terminal to perform a full Anti-Virus scan on your system –

sudo avgscan / -a -H -c

Running AVG Anti-Virus Scanner In Linux

The above command scans your root directory(/) i.e. all files in your system are scanned. The option ‘-a’ instructs the AVG Anti-virus scanner to scan the compressed archive files too. The option ‘-H’ instructs the scanner to use heuristics while scanning. The option ‘-c’ instructs the scanner to scan cookies too.

7. After the scanning is completed, the you will see a result similar to this –

AVG Anti-Virus Scan Results In Linux

(Please note that in above screenshot we have interrupted the scan in order to show you what a result screen will look like). Also, note that the current version of AVG Anti-Virus for Linux does have a ‘-l’ command line option forclean, as per documentation it doesn’t take any action by default. So it’s recommended that you manually delete any virus infected files found by the scanner. Hopefully, they’ll improve the scanner in the future to take action on infected files without manual intervention.

UPDATE Jan 2014
The last picture shows the results of running this command:-
sudo avgscan /home/user/Documents/ -a -H -c -l

on the Documents folder where I had placed the eicar.com virus in zip form.
Notice the ‘-l’ switch for cleaning.

After the scan, it says healed, which in this case was automatic deletion.
You may want to run without the ‘-l’ switch first to see what is found.
Then you can just highlight and copy the the path from the list, then paste it back to the command line adding ‘sudo rm’ at the beginning to remove it, like this:

sudo rm /home/user/Documents/eicar_com.zip:/eicar.com

avg-healed

Also, having no GUI has the advantage that the scanning completes faster and Linux users who don’t use GUI can easily use AVG Anti-Virus to scan their system.

This entry was posted in Linux. Bookmark the permalink.

2 Responses to AVG on Linux

  1. mahmoud amer says:

    hi
    how can i remove Infections found in terminal???

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s