{"id":19153,"date":"2017-10-27T11:24:02","date_gmt":"2017-10-27T05:54:02","guid":{"rendered":"https:\/\/blog.resellerclub.com\/?p=19153"},"modified":"2025-10-24T12:10:57","modified_gmt":"2025-10-24T12:10:57","slug":"how-to-install-clamav-on-linux","status":"publish","type":"post","link":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/","title":{"rendered":"How to install ClamAV on Linux?"},"content":{"rendered":"<p>Are you a pro user of Linux, probably <a href=\"https:\/\/india.resellerclub.com\/dedicated-server-hosting\" target=\"_blank\" rel=\"noopener\">Dedicated Servers<\/a> or <a href=\"https:\/\/india.resellerclub.com\/vps-hosting\" target=\"_blank\" rel=\"noopener\">Virtual Private Servers<\/a>? If yes, then I\u2019m sure the security of your web hosting is a concern that you cannot take lightly.<\/p>\n<p>Viruses, worms and other malicious entities are always evolving to beat the latest defences that system architects and security companies can devise. Hence, it is a good practice to be prepared and ClamAV antivirus is the best choice, with it being available on our cPanel Servers.<\/p>\n<p><strong>What is ClamAV?<\/strong><br \/>\n<a href=\"https:\/\/www.clamav.net\/\" target=\"_blank\" rel=\"noopener\">ClamAV<\/a> is an open source antivirus software used as a web and mail scanner protecting the computer from malicious viruses providing security. It supports multiple file formats, signature languages and also includes a multi-threaded scanner daemon. ClamAV is a cross-platform antivirus software supporting operating systems like Windows, Linux, BSD, Solaris and Mac OS X.<\/p>\n<p><strong>Features of ClamAV<\/strong><br \/>\nSome of the features of ClamAV include the following:<\/p>\n<ol>\n<ol>\n<li>It is a command line scanner with advanced tools<\/li>\n<li>Is able to detect over 1 million viruses, trojans, worms, mobile malware among others.<\/li>\n<li>Has built-in support for almost all mail file formats<\/li>\n<li>Supports special file formats like HTML, RTF, PDF, TNEF and others<\/li>\n<li>Has an advanced database updater supporting scripted updates, digital signatures and DNS based database version queries<\/li>\n<li>Scans within archives and compressed files and supports file formats like ZIP, RAR, 7Zip, ARJ, Tar, CPIO, Gzip, Bzip2, DMG, IMG and others<\/li>\n<\/ol>\n<\/ol>\n<p><strong>How to install ClamAV on Linux?<\/strong><br \/>\nNow that we\u2019ve seen the features of ClamAV, let us see how to install ClamAV on Linux. For your benefit, we\u2019ll be installing ClamAV on Linux Server as well as a standalone personal computer.<\/p>\n<h3><strong>Part I:<\/strong><\/h3>\n<p><strong>We are going to install ClamAV on Linux cPanel in WHM with full root access<\/strong><\/p>\n<p><strong>Step I:<\/strong> Login to your WHM panel as a root user<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-19155 size-full\" src=\"\/blog\/wp-content\/uploads\/2017\/10\/1-1.png\" alt=\"WHM panel\" width=\"1802\" height=\"511\"><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step II:<\/strong> Now Click on the cPanel icon and select Manage Plugins.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-19159 size-full\" src=\"\/blog\/wp-content\/uploads\/2017\/10\/2-1.png\" alt=\"WHM manage plugin\" width=\"1886\" height=\"287\"><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Step III:<\/strong> Select ClamAV and click on \u2018Install ClamAV\u2019<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-19161\" src=\"\/blog\/wp-content\/uploads\/2017\/10\/3-2.png\" alt=\"install clamav on linux&nbsp;\" width=\"700\" height=\"472\"><\/p>\n<p><strong>Step IV:<\/strong> Your server is now secured with the latest updated ClamAV anti-virus.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-19163\" src=\"\/blog\/wp-content\/uploads\/2017\/10\/5-1.png\" alt=\"clamav in WHM\" width=\"700\" height=\"609\"><\/p>\n<h3><strong>Part II:<\/strong><\/h3>\n<p><strong>For installing ClamAV on a standalone PC with Linux Operating System follow the below steps.<\/strong><br \/>\n<strong>Step 1:<\/strong> Open the terminal and type in the following command. This command installs ClamAV and clamscam, the command-line scanner.<\/p>\n<blockquote><p>sudo apt-get install clamav<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-19169 size-full\" src=\"\/blog\/wp-content\/uploads\/2017\/10\/1-2-e1508926570528.png\" alt=\"install clamav on PC\" width=\"713\" height=\"327\"><\/p>\n<p><strong>Step 2:<\/strong> Since ClamAV is a command line tool, running it can be a hassle. For that purposes, installing a GUI tool is a better option. ClamTk is a GUI front-end tool for ClamAV using perl-Gtk2. It can be found in the Software Center or can be installed manually. Below is the command for manual installation.<\/p>\n<blockquote><p>sudo apt-get install clamtk<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-19173 size-full\" src=\"\/blog\/wp-content\/uploads\/2017\/10\/2-2-e1508929450657.png\" alt=\"clamav install commands for PC\" width=\"1114\" height=\"458\"><\/p>\n<p><strong>How to use ClamAV?<\/strong><\/p>\n<p>Once you\u2019ve installed ClamAV on Linux, it is time to use it. There are some commands that can be run in clamscan. For example,<br \/>\n<em>-h, -help: This is for printing help information and exit.<\/em><br \/>\nYou can find further commands on our&nbsp;<a href=\"http:\/\/manage.resellerclub.com\/kb\/answer\/2262\" target=\"_blank\" rel=\"noopener\">ResellerClub Knowledge Base<\/a><\/p>\n<p>ResellerClub <a href=\"https:\/\/india.resellerclub.com\/shared-hosting\">shared hosting<\/a> products come with ClamAV pre-installed so that you get the best in class protection from viruses and other threats. If you have purchased servers with root access, you can setup ClamAV as detailed above and enjoy robust security with your hosting.<\/p>\n<h2>Reseller Club Hosting Services<\/h2>\n<p><a href=\"https:\/\/www.resellerclub.com\/reseller-hosting\">Reseller Hosting<\/a> | <a href=\"https:\/\/www.resellerclub.com\/windows-reseller-hosting\">Windows Reseller Hosting<\/a> | <a href=\"https:\/\/www.resellerclub.com\/cloud-hosting\">Cloud Hosting<\/a> | <a href=\"https:\/\/www.resellerclub.com\/vps-hosting\">VPS Hosting<\/a> | <a href=\"https:\/\/www.resellerclub.com\/managed-vps-hosting\">Managed VPS Hosting<\/a> | <a href=\"https:\/\/www.resellerclub.com\/dedicated-server-hosting\">Dedicated Server Hosting<\/a> | <a href=\"https:\/\/www.resellerclub.com\/windows-dedicated-server-hosting\">Windows Dedicated Server<\/a> | <a href=\"https:\/\/www.resellerclub.com\/managed-dedicated-server-hosting\">Managed Dedicated Server<\/a> | <a href=\"https:\/\/www.resellerclub.com\/shared-hosting\">Linux Shared Hosting<\/a> | <a href=\"https:\/\/www.resellerclub.com\/windows-shared-hosting\">Windows Shared Hosting<\/a><\/p>\n<div class=\"fb-background-color\">\n\t\t\t  <div \n\t\t\t  \tclass = \"fb-comments\" \n\t\t\t  \tdata-href = \"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/\"\n\t\t\t  \tdata-numposts = \"10\"\n\t\t\t  \tdata-lazy = \"true\"\n\t\t\t\tdata-colorscheme = \"light\"\n\t\t\t\tdata-order-by = \"social\"\n\t\t\t\tdata-mobile=true>\n\t\t\t  <\/div><\/div>\n\t\t  <style>\n\t\t    .fb-background-color {\n\t\t\t\tbackground:  !important;\n\t\t\t}\n\t\t\t.fb_iframe_widget_fluid_desktop iframe {\n\t\t\t    width: 100% !important;\n\t\t\t}\n\t\t  <\/style>\n\t\t  ","protected":false},"excerpt":{"rendered":"<p>Are you a pro user of Linux, probably Dedicated Servers or Virtual Private Servers? If yes, then I\u2019m sure the security of your web hosting is a concern that you cannot take lightly. Viruses, worms and other malicious entities are always evolving to beat the latest defences that system architects and security companies can devise.<\/p>\n","protected":false},"author":75,"featured_media":19175,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1527,813,1533,995],"tags":[788,4939,408,478,281,4853,326],"hashtags":[],"class_list":{"0":"post-19153","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-featured-post","8":"category-website-security-2","9":"category-tech","10":"category-hosting","11":"tag-antivirus","12":"tag-clamav","13":"tag-cpanel","14":"tag-dedicated-hosting","15":"tag-linux","16":"tag-vps-server","17":"tag-whm"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to install ClamAV on Linux?<\/title>\n<meta name=\"description\" content=\"ClamAV is an anti-virus toolkit for Linux servers and standalone PC. Learn how to install ClamAV on Linux servers and PC with this post.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to install ClamAV on Linux?\" \/>\n<meta property=\"og:description\" content=\"ClamAV is an anti-virus toolkit for Linux servers and standalone PC. Learn how to install ClamAV on Linux servers and PC with this post.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"ResellerClub Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/profile.php?id=100005889763273\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-27T05:54:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-24T12:10:57+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"H. Fatima\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#website\",\"url\":\"https:\/\/www.resellerclub.com\/blog\/\",\"name\":\"ResellerClub Blog\",\"description\":\"Web Hosting &amp; Domains\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.resellerclub.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#webpage\",\"url\":\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/\",\"name\":\"How to install ClamAV on Linux?\",\"isPartOf\":{\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#primaryimage\"},\"datePublished\":\"2017-10-27T05:54:02+00:00\",\"dateModified\":\"2025-10-24T12:10:57+00:00\",\"author\":{\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/04f625d706ed889a739c8fdfe159375c\"},\"description\":\"ClamAV is an anti-virus toolkit for Linux servers and standalone PC. Learn how to install ClamAV on Linux servers and PC with this post.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.resellerclub.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to install ClamAV on Linux?\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/04f625d706ed889a739c8fdfe159375c\",\"name\":\"H. Fatima\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.resellerclub.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.resellerclub.com\/blog\/wp-content\/uploads\/2020\/03\/IMG-20190220-WA0043-150x150.jpg\",\"contentUrl\":\"https:\/\/www.resellerclub.com\/blog\/wp-content\/uploads\/2020\/03\/IMG-20190220-WA0043-150x150.jpg\",\"caption\":\"H. Fatima\"},\"description\":\"H. Fatima used to be an Engineer by profession and Writer by passion until she started pursuing full-time writing. She is presently a Content Marketeer at Newfold Digital (APAC). She mostly writes what she deeply perceives and analyses, it is her way of unwinding. Her interests include writing, reading (an avid reader), watching foreign-language movies and public speaking.\",\"url\":\"https:\/\/www.resellerclub.com\/blog\/author\/h-fatima\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to install ClamAV on Linux?","description":"ClamAV is an anti-virus toolkit for Linux servers and standalone PC. Learn how to install ClamAV on Linux servers and PC with this post.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/","og_locale":"en_US","og_type":"article","og_title":"How to install ClamAV on Linux?","og_description":"ClamAV is an anti-virus toolkit for Linux servers and standalone PC. Learn how to install ClamAV on Linux servers and PC with this post.","og_url":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/","og_site_name":"ResellerClub Blog","article_publisher":"https:\/\/www.facebook.com\/profile.php?id=100005889763273","article_published_time":"2017-10-27T05:54:02+00:00","article_modified_time":"2025-10-24T12:10:57+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"H. Fatima","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.resellerclub.com\/blog\/#website","url":"https:\/\/www.resellerclub.com\/blog\/","name":"ResellerClub Blog","description":"Web Hosting &amp; Domains","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.resellerclub.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#primaryimage","inLanguage":"en-US","url":"","contentUrl":""},{"@type":"WebPage","@id":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#webpage","url":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/","name":"How to install ClamAV on Linux?","isPartOf":{"@id":"https:\/\/www.resellerclub.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#primaryimage"},"datePublished":"2017-10-27T05:54:02+00:00","dateModified":"2025-10-24T12:10:57+00:00","author":{"@id":"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/04f625d706ed889a739c8fdfe159375c"},"description":"ClamAV is an anti-virus toolkit for Linux servers and standalone PC. Learn how to install ClamAV on Linux servers and PC with this post.","breadcrumb":{"@id":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.resellerclub.com\/blog\/how-to-install-clamav-on-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.resellerclub.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to install ClamAV on Linux?"}]},{"@type":"Person","@id":"https:\/\/www.resellerclub.com\/blog\/#\/schema\/person\/04f625d706ed889a739c8fdfe159375c","name":"H. Fatima","image":{"@type":"ImageObject","@id":"https:\/\/www.resellerclub.com\/blog\/#personlogo","inLanguage":"en-US","url":"https:\/\/www.resellerclub.com\/blog\/wp-content\/uploads\/2020\/03\/IMG-20190220-WA0043-150x150.jpg","contentUrl":"https:\/\/www.resellerclub.com\/blog\/wp-content\/uploads\/2020\/03\/IMG-20190220-WA0043-150x150.jpg","caption":"H. Fatima"},"description":"H. Fatima used to be an Engineer by profession and Writer by passion until she started pursuing full-time writing. She is presently a Content Marketeer at Newfold Digital (APAC). She mostly writes what she deeply perceives and analyses, it is her way of unwinding. Her interests include writing, reading (an avid reader), watching foreign-language movies and public speaking.","url":"https:\/\/www.resellerclub.com\/blog\/author\/h-fatima\/"}]}},"_links":{"self":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts\/19153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/comments?post=19153"}],"version-history":[{"count":13,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts\/19153\/revisions"}],"predecessor-version":[{"id":38223,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/posts\/19153\/revisions\/38223"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/media?parent=19153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/categories?post=19153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/tags?post=19153"},{"taxonomy":"hashtags","embeddable":true,"href":"https:\/\/www.resellerclub.com\/blog\/wp-json\/wp\/v2\/hashtags?post=19153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}