How To Install And Use AVG Antivirus In Linux
You can download the Linux version of the AVG manual from here:
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
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,
3. After the installation is complete, issue the following command at the terminal –
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 –
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
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 –
(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
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.