본문 바로가기

Server/Linux

Linux 무료 백신

728x90
반응형

linux에 백신을 설치해야 하는 경우가 있다.

 

그런 경우 유료를 사용하는게 어떤 점이든 편하지만 비용으로 어려운 경우 사용하면 좋을거 같다

 

다만 Clam AV는 검사만 가능하지 치료는 어렵다. 

 

ClamAV(Clam AntiVirus)는 네트워크 장비로 유명한 시스코 시스템즈에서 지원하는 오픈소스 소프트웨어로 자유 크로스플랫폼 형식의 바이러스 검사 소프트웨어 툴킷이다. (위키글참조)

 

URL : https://www.clamav.net/downloads

 

ClamavNet

ClamTk is a GUI front-end for ClamAV using gtk2-perl. It is designed to be an easy-to-use, on-demand scanner for Linux systems. ClamTk has been ported to Fedora, Debian, RedHat, openSUSE, ALT Linux, Ubuntu, CentOS, Gentoo, Archlinux, Mandriva, PCLinuxOS, F

www.clamav.net

설치 방법은 홈페이지에 참고하여 가지고 왔다.

 

Devian 

  apt-get update
  apt-get install clamav

 

RRHEL/CentOS  

 yum install -y epel-release
 yum install -y clamav
[root@111 ~]# yum install -y epel-release
Loaded plugins: fastestmirror
Determining fastest mirrors
 * base: mirror.kakao.com
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
base                                                                                        | 3.6 kB  00:00:00     
extras                                                                                      | 2.9 kB  00:00:00     
updates                                                                                     | 2.9 kB  00:00:00     
(1/2): extras/7/x86_64/primary_db                                                           | 205 kB  00:00:00     
(2/2): updates/7/x86_64/primary_db                                                          | 3.0 MB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-11 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                         Arch                      Version                 Repository                 Size
===================================================================================================================
Installing:
 epel-release                    noarch                    7-11                    extras                     15 k

Transaction Summary
===================================================================================================================
Install  1 Package

Total download size: 15 k
Installed size: 24 k
Downloading packages:
epel-release-7-11.noarch.rpm                                                                |  15 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : epel-release-7-11.noarch                                                                        1/1 
  Verifying  : epel-release-7-11.noarch                                                                        1/1 

Installed:
  epel-release.noarch 0:7-11                                                                                       

Complete!
[root@k111]# yum install -y clamav
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                                                        | 6.1 kB  00:00:00     
 * base: mirror.kakao.com
 * epel: ftp.riken.jp
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com
epel                                                                                        | 4.7 kB  00:00:00     
(1/3): epel/x86_64/group_gz                                                                 |  95 kB  00:00:00     
(2/3): epel/x86_64/updateinfo                                                               | 1.0 MB  00:00:00     
(3/3): epel/x86_64/primary_db                                                               | 6.8 MB  00:00:07     
Resolving Dependencies
--> Running transaction check
---> Package clamav.x86_64 0:0.102.3-1.el7 will be installed
--> Processing Dependency: clamav-filesystem = 0.102.3-1.el7 for package: clamav-0.102.3-1.el7.x86_64
--> Processing Dependency: clamav-lib = 0.102.3-1.el7 for package: clamav-0.102.3-1.el7.x86_64
--> Processing Dependency: data(clamav) for package: clamav-0.102.3-1.el7.x86_64
--> Processing Dependency: libclamav.so.9(CLAMAV_PRIVATE)(64bit) for package: clamav-0.102.3-1.el7.x86_64
--> Processing Dependency: libclamav.so.9(CLAMAV_PUBLIC)(64bit) for package: clamav-0.102.3-1.el7.x86_64
--> Processing Dependency: libclamav.so.9()(64bit) for package: clamav-0.102.3-1.el7.x86_64
--> Running transaction check
---> Package clamav-filesystem.noarch 0:0.102.3-1.el7 will be installed
---> Package clamav-lib.x86_64 0:0.102.3-1.el7 will be installed
--> Processing Dependency: libltdl.so.7()(64bit) for package: clamav-lib-0.102.3-1.el7.x86_64
--> Processing Dependency: libpcre2-8.so.0()(64bit) for package: clamav-lib-0.102.3-1.el7.x86_64
--> Processing Dependency: libprelude.so.28()(64bit) for package: clamav-lib-0.102.3-1.el7.x86_64
---> Package clamav-update.x86_64 0:0.102.3-1.el7 will be installed
--> Running transaction check
---> Package libprelude.x86_64 0:5.1.1-1.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed
---> Package pcre2.x86_64 0:10.23-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================
 Package                          Arch                  Version                          Repository           Size
===================================================================================================================
Installing:
 clamav                           x86_64                0.102.3-1.el7                    epel                444 k
Installing for dependencies:
 clamav-filesystem                noarch                0.102.3-1.el7                    epel                 39 k
 clamav-lib                       x86_64                0.102.3-1.el7                    epel                796 k
 clamav-update                    x86_64                0.102.3-1.el7                    epel                124 k
 libprelude                       x86_64                5.1.1-1.el7                      epel                308 k
 libtool-ltdl                     x86_64                2.4.2-22.el7_3                   base                 49 k
 pcre2                            x86_64                10.23-2.el7                      base                201 k

Transaction Summary
===================================================================================================================
Install  1 Package (+6 Dependent packages)

Total download size: 1.9 M
Installed size: 6.9 M
Downloading packages:
경고: /var/cache/yum/x86_64/7/epel/packages/clamav-0.102.3-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY
Public key for clamav-0.102.3-1.el7.x86_64.rpm is not installed
(1/7): clamav-0.102.3-1.el7.x86_64.rpm                                                      | 444 kB  00:00:00     
(2/7): clamav-filesystem-0.102.3-1.el7.noarch.rpm                                           |  39 kB  00:00:00     
(3/7): clamav-lib-0.102.3-1.el7.x86_64.rpm                                                  | 796 kB  00:00:00     
(4/7): clamav-update-0.102.3-1.el7.x86_64.rpm                                               | 124 kB  00:00:00     
(5/7): pcre2-10.23-2.el7.x86_64.rpm                                                         | 201 kB  00:00:00     
(6/7): libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm                                               |  49 kB  00:00:00     
(7/7): libprelude-5.1.1-1.el7.x86_64.rpm                                                    | 308 kB  00:00:00     
-------------------------------------------------------------------------------------------------------------------
Total                                                                              1.3 MB/s | 1.9 MB  00:00:01     
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Importing GPG key 0x352C64E5:
 Userid     : "Fedora EPEL (7) <epel@fedoraproject.org>"
 Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5
 Package    : epel-release-7-11.noarch (@extras)
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libtool-ltdl-2.4.2-22.el7_3.x86_64                                                              1/7 
  Installing : libprelude-5.1.1-1.el7.x86_64                                                                   2/7 
  Installing : clamav-filesystem-0.102.3-1.el7.noarch                                                          3/7 
  Installing : pcre2-10.23-2.el7.x86_64                                                                        4/7 
  Installing : clamav-update-0.102.3-1.el7.x86_64                                                              5/7 
  Installing : clamav-lib-0.102.3-1.el7.x86_64                                                                 6/7 
  Installing : clamav-0.102.3-1.el7.x86_64                                                                     7/7 
  Verifying  : pcre2-10.23-2.el7.x86_64                                                                        1/7 
  Verifying  : clamav-lib-0.102.3-1.el7.x86_64                                                                 2/7 
  Verifying  : clamav-filesystem-0.102.3-1.el7.noarch                                                          3/7 
  Verifying  : libtool-ltdl-2.4.2-22.el7_3.x86_64                                                              4/7 
  Verifying  : clamav-0.102.3-1.el7.x86_64                                                                     5/7 
  Verifying  : libprelude-5.1.1-1.el7.x86_64                                                                   6/7 
  Verifying  : clamav-update-0.102.3-1.el7.x86_64                                                              7/7 

Installed:
  clamav.x86_64 0:0.102.3-1.el7                                                                                    

Dependency Installed:
  clamav-filesystem.noarch 0:0.102.3-1.el7                    clamav-lib.x86_64 0:0.102.3-1.el7                   
  clamav-update.x86_64 0:0.102.3-1.el7                        libprelude.x86_64 0:5.1.1-1.el7                     
  libtool-ltdl.x86_64 0:2.4.2-22.el7_3                        pcre2.x86_64 0:10.23-2.el7                          

Complete!

 

Fedora 

  yum install -y clamav clamav-update

openSUSE  

  zypper install -y clamav

----------------------------------------------------------------

업데이트 freshclam

CentOS

[root@11111~]# freshclam
ClamAV update process started at Tue Jul 14 16:43:10 2020
daily database available for download (remote version: 25872)
Time: 1.8s, ETA: 0.0s [=============================>] 84.69MiB/84.69MiB        
Testing database: '/var/lib/clamav/tmp.033ec/clamav-9c6b5a8a88d7245077e8de09a76da40f.tmp-daily.cvd' ...
Database test passed.
daily.cvd updated (version: 25872, sigs: 3371501, f-level: 63, builder: raynman)
main database available for download (remote version: 59)
Time: 2.9s, ETA: 0.0s [=============================>] 112.40MiB/112.40MiB       
Testing database: '/var/lib/clamav/tmp.033ec/clamav-edeea54102c858ce482097a3293dd538.tmp-main.cvd' ...
Database test passed.
main.cvd updated (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode database available for download (remote version: 331)
Time: 0.1s, ETA: 0.0s [=============================>] 289.44KiB/289.44KiB     
Testing database: '/var/lib/clamav/tmp.033ec/clamav-8f34ab88f4df9c27aae9182c878ea794.tmp-bytecode.cvd' ...
Database test passed.
bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg)

----------------------------------

실행 : clamscan -r

CentOS

[root@111 0630]# clamscan -r ./
./2006153_4.png: OK

----------- SCAN SUMMARY -----------
Known viruses: 7951134
Engine version: 0.102.3
Scanned directories: 1
Scanned files: 1
Infected files: 0
Data scanned: 0.01 MB
Data read: 0.01 MB (ratio 1.00:1)
Time: 23.442 sec (0 m 23 s)
728x90
반응형