Howto install ClamAV Antivirus on Ubuntu 13.04 12.10 12.04 11.10 11.04

Howto install ClamAV Antivirus on Ubuntu 13.04 12.10 12.04 11.10 11.04

install Clam AntiVirus Fedora 18

Step 1. Install ClamAV on Ubuntu Server

root@ip-10-48-234-13:~# sudo apt-get install clamav
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
clamav-base clamav-freshclam libclamav6 libltdl7 libtommath0
Suggested packages:
clamav-docs libclamunrar6
The following NEW packages will be installed:
clamav clamav-base clamav-freshclam libclamav6 libltdl7 libtommath0
0 upgraded, 6 newly installed, 0 to remove and 72 not upgraded.
Need to get 4,510 kB of archives.
After this operation, 13.0 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 precise/main libltdl7 amd64 2.4.2-1ubuntu1 [37.6 kB]
Get:2 precise/main libtommath0 amd64 0.42.0-1 [53.0 kB]
Get:3 precise-updates/main libclamav6 amd64 0.97.8+dfsg-1ubuntu1.12.04.1 [4,069 kB]
Get:4 precise-updates/main clamav-base all 0.97.8+dfsg-1ubuntu1.12.04.1 [102 kB]
Get:5 precise-updates/main clamav-freshclam amd64 0.97.8+dfsg-1ubuntu1.12.04.1 [116 kB]
Get:6 precise-updates/main clamav amd64 0.97.8+dfsg-1ubuntu1.12.04.1 [133 kB]
Fetched 4,510 kB in 2s (1,513 kB/s)
Preconfiguring packages …
Selecting previously unselected package libltdl7.
(Reading database … 50204 files and directories currently installed.)
Unpacking libltdl7 (from …/libltdl7_2.4.2-1ubuntu1_amd64.deb) …
Selecting previously unselected package libtommath0.
Unpacking libtommath0 (from …/libtommath0_0.42.0-1_amd64.deb) …
Selecting previously unselected package libclamav6.
Unpacking libclamav6 (from …/libclamav6_0.97.8+dfsg-1ubuntu1.12.04.1_amd64.deb) …
Selecting previously unselected package clamav-base.
Unpacking clamav-base (from …/clamav-base_0.97.8+dfsg-1ubuntu1.12.04.1_all.deb) …
Selecting previously unselected package clamav-freshclam.
Unpacking clamav-freshclam (from …/clamav-freshclam_0.97.8+dfsg-1ubuntu1.12.04.1_amd64.deb) …
Selecting previously unselected package clamav.
Unpacking clamav (from …/clamav_0.97.8+dfsg-1ubuntu1.12.04.1_amd64.deb) …
Processing triggers for man-db …
Processing triggers for ureadahead …
Setting up libltdl7 (2.4.2-1ubuntu1) …
Setting up libtommath0 (0.42.0-1) …
Setting up libclamav6 (0.97.8+dfsg-1ubuntu1.12.04.1) …
Setting up clamav-base (0.97.8+dfsg-1ubuntu1.12.04.1) …
Setting up clamav-freshclam (0.97.8+dfsg-1ubuntu1.12.04.1) …
* Starting ClamAV virus database updater freshclam [ OK ]
Setting up clamav (0.97.8+dfsg-1ubuntu1.12.04.1) …
Processing triggers for libc-bin …
ldconfig deferred processing now taking place

Step 2:  Update antivirus database

root@ip-10-48-234-13:~# sudo freshclam
ClamAV update process started at Sun May 12 22:12:02 2013
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
Downloading daily.cvd [100%]
daily.cvd updated (version: 17198, sigs: 1248371, f-level: 63, builder: guitar)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 214, sigs: 41, f-level: 63, builder: neo)
Database updated (2292799 signatures) from (IP:

Step 3: Scan virus on your Ubuntu Server

root@ip-10-48-234-13:~# sudo clamscan
/root/.rnd: OK
/root/.bash_history: OK
/root/.viminfo: OK
/root/.bashrc: OK
/root/.profile: OK———– SCAN SUMMARY ———–
Known viruses: 2287386
Engine version: 0.97.8
Scanned directories: 1
Scanned files: 5
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 36.970 sec (0 m 36 s)


That’s it. Thanks for using


One comment to Howto install ClamAV Antivirus on Ubuntu 13.04 12.10 12.04 11.10 11.04

  • Mac  says:

    Thanks, this was just what I needed. I’ll use MAN page to see how to scan other drives. Trying to rid a Client of a nasty windows malware or virus. Not sure this will catch it, but I hope so. Now if malwarebytes will just make a linux version so the malware makers can’t target it so easily.

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>