Home‎ > ‎Applications‎ > ‎

AVG free antivirus installation from command line on Ubuntu

Download .deb file from http://free.avg.com/us-en/download-free-all-product, install 32-bit libraries, install AVG, update and that is all.

$ wget http://download.avgfree.com/filedir/inst/avg2013flx-r3115-a6155.i386.deb

Install ib32-libs if you are on 64-bit PC

$ sudo apt-get install ia32-libs

Install .deb package with main program files

$ sudo dpkg -i avg2013flx-r3115-a6155.i386.deb

To update virus database or AVG

$ sudo avgupdate

To completely remove AVG from your computer, using dpkg -r might not work if installation does not go well on the first time, apt-get autoremove purge does.

$ sudo apt-get autoremove --purge avg2013flx

To use AVG, use avgscan, this example will scan recursively folder and it's sub-folders /home/user/ ..., ignerrors parameter will ignore displaying errors with file permissions and encrypted or password-secured archives, do only infected files are displayed:

$ sudo avgscan -ignerrors /home/user/

Entering avg to command line following by pressing TAB twice will generate list of all AVG commands to check out:

$ avg
avgcfgctl  avgdiag    avgevtlog  avgsetup   avgvvctl   
avgctl     avgdump    avgscan    avgupdate 

When infections are found, use parameters -l to heal, -t to delete, more in --help

$ sudo avgscan -l /home/user/infected.file.exe

is equivalent to

$ sudo avgscan --heal /home/user/infected.file.exe

Few selected important options lines from help:

As seen in example above, the syntax is: avgscan [options] [path-list]

-l, --heal Automatically heal infected object.
-t, --delete Automatically delete infected object.
-u, --vv-move Automatically move infected object into vault.
-U, --vv-backup Backup infected object if healed by deletion.