[root@test ~]# yum install clamav clamav-server clamav-data clamav-update clamav-filesystem clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
Loaded plugins: axelget, fastestmirror
No metadata available for base
No metadata available for docker-ce-stable
No metadata available for epel
No metadata available for extras
No metadata available for updates
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirrors.bfsu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package clamav.x86_64 0:0.103.8-3.el7 will be installed
---> Package clamav-data.noarch 0:0.103.8-3.el7 will be installed
---> Package clamav-devel.x86_64 0:0.103.8-3.el7 will be installed
---> Package clamav-filesystem.noarch 0:0.103.8-3.el7 will be installed
---> Package clamav-lib.x86_64 0:0.103.8-3.el7 will be installed
--> Processing Dependency: libpcre2-8.so.0()(64bit) for package: clamav-lib-0.103.8-3.el7.x86_64
--> Processing Dependency: libprelude.so.28()(64bit) for package: clamav-lib-0.103.8-3.el7.x86_64
---> Package clamav-update.x86_64 0:0.103.8-3.el7 will be installed
---> Package clamd.x86_64 0:0.103.8-3.el7 will be installed
--> Running transaction check
---> Package libprelude.x86_64 0:5.2.0-2.el7 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.103.8-3.el7 epel 332 k
clamav-data noarch 0.103.8-3.el7 epel 221 M
clamav-devel x86_64 0.103.8-3.el7 epel 51 k
clamav-filesystem noarch 0.103.8-3.el7 epel 44 k
clamav-lib x86_64 0.103.8-3.el7 epel 833 k
clamav-update x86_64 0.103.8-3.el7 epel 128 k
clamd x86_64 0.103.8-3.el7 epel 122 k
Installing for dependencies:
libprelude x86_64 5.2.0-2.el7 epel 312 k
pcre2 x86_64 10.23-2.el7 base 201 k
Transaction Summary
=====================================================================================================================================================================================
Install 7 Packages (+2 Dependent packages)
Total download size: 223 M
Installed size: 390 M
Is this ok [y/d/N]: ^C
Exiting on user command
Your transaction was saved, rerun it with:
yum load-transaction /tmp/yum_save_tx.2023-07-13.16-56.H2zvX5.yumtx
[root@test ~]# yum install clamav clamav-server clamav-data clamav-update clamav-filesystem clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd -y
Loaded plugins: axelget, fastestmirror
No metadata available for base
No metadata available for docker-ce-stable
No metadata available for epel
No metadata available for extras
No metadata available for updates
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirror.01link.hk
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
--> Running transaction check
---> Package clamav.x86_64 0:0.103.8-3.el7 will be installed
---> Package clamav-data.noarch 0:0.103.8-3.el7 will be installed
---> Package clamav-devel.x86_64 0:0.103.8-3.el7 will be installed
---> Package clamav-filesystem.noarch 0:0.103.8-3.el7 will be installed
---> Package clamav-lib.x86_64 0:0.103.8-3.el7 will be installed
--> Processing Dependency: libpcre2-8.so.0()(64bit) for package: clamav-lib-0.103.8-3.el7.x86_64
--> Processing Dependency: libprelude.so.28()(64bit) for package: clamav-lib-0.103.8-3.el7.x86_64
---> Package clamav-update.x86_64 0:0.103.8-3.el7 will be installed
---> Package clamd.x86_64 0:0.103.8-3.el7 will be installed
--> Running transaction check
---> Package libprelude.x86_64 0:5.2.0-2.el7 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.103.8-3.el7 epel 332 k
clamav-data noarch 0.103.8-3.el7 epel 221 M
clamav-devel x86_64 0.103.8-3.el7 epel 51 k
clamav-filesystem noarch 0.103.8-3.el7 epel 44 k
clamav-lib x86_64 0.103.8-3.el7 epel 833 k
clamav-update x86_64 0.103.8-3.el7 epel 128 k
clamd x86_64 0.103.8-3.el7 epel 122 k
Installing for dependencies:
libprelude x86_64 5.2.0-2.el7 epel 312 k
pcre2 x86_64 10.23-2.el7 base 201 k
Transaction Summary
=====================================================================================================================================================================================
Install 7 Packages (+2 Dependent packages)
Total download size: 223 M
Installed size: 390 M
Downloading packages:
clamav-data-0.103.8-3.el7.noarch.rpm | 221 MB 00:04:22
clamav-0.103.8-3.el7.x86_64.rpm | 332 kB 00:00:02
clamav-lib-0.103.8-3.el7.x86_64.rpm | 833 kB 00:00:04
libprelude-5.2.0-2.el7.x86_64.rpm | 312 kB 00:00:02
(1/5): clamav-devel-0.103.8-3.el7.x86_64.rpm | 51 kB 00:00:00
(2/5): clamav-filesystem-0.103.8-3.el7.noarch.rpm | 44 kB 00:00:00
(3/5): clamav-update-0.103.8-3.el7.x86_64.rpm | 128 kB 00:00:00
(4/5): clamd-0.103.8-3.el7.x86_64.rpm | 122 kB 00:00:00
(5/5): pcre2-10.23-2.el7.x86_64.rpm | 201 kB 00:00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 702 kB/s | 547 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : clamav-filesystem-0.103.8-3.el7.noarch 1/9
Installing : libprelude-5.2.0-2.el7.x86_64 2/9
Installing : pcre2-10.23-2.el7.x86_64 3/9
Installing : clamav-lib-0.103.8-3.el7.x86_64 4/9
Installing : clamav-update-0.103.8-3.el7.x86_64 5/9
Installing : clamav-0.103.8-3.el7.x86_64 6/9
Installing : clamd-0.103.8-3.el7.x86_64 7/9
Installing : clamav-devel-0.103.8-3.el7.x86_64 8/9
Installing : clamav-data-0.103.8-3.el7.noarch 9/9
Verifying : clamav-data-0.103.8-3.el7.noarch 1/9
Verifying : clamav-0.103.8-3.el7.x86_64 2/9
Verifying : clamav-update-0.103.8-3.el7.x86_64 3/9
Verifying : clamd-0.103.8-3.el7.x86_64 4/9
Verifying : clamav-devel-0.103.8-3.el7.x86_64 5/9
Verifying : pcre2-10.23-2.el7.x86_64 6/9
Verifying : clamav-filesystem-0.103.8-3.el7.noarch 7/9
Verifying : clamav-lib-0.103.8-3.el7.x86_64 8/9
Verifying : libprelude-5.2.0-2.el7.x86_64 9/9
Installed:
clamav.x86_64 0:0.103.8-3.el7 clamav-data.noarch 0:0.103.8-3.el7 clamav-devel.x86_64 0:0.103.8-3.el7 clamav-filesystem.noarch 0:0.103.8-3.el7
clamav-lib.x86_64 0:0.103.8-3.el7 clamav-update.x86_64 0:0.103.8-3.el7 clamd.x86_64 0:0.103.8-3.el7
Dependency Installed:
libprelude.x86_64 0:5.2.0-2.el7 pcre2.x86_64 0:10.23-2.el7
Complete!
[root@test ~]# clam
clamav-config clambc clamconf clamd clamdscan clamdtop clamonacc clamscan clamsubmit
[root@test ~]# clamscan /
LibClamAV Warning: **************************************************
LibClamAV Warning: *** The virus database is older than 7 days! ***
LibClamAV Warning: *** Please update it as soon as possible. ***
LibClamAV Warning: **************************************************
/bin: Symbolic link
/sbin: Symbolic link
/lib: Symbolic link
/lib64: Symbolic link
/.autorelabel: Empty file
----------- SCAN SUMMARY -----------
Known viruses: 8653232
Engine version: 0.103.8
Scanned directories: 1
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 24.919 sec (0 m 24 s)
Start Date: 2023:07:13 17:02:04
End Date: 2023:07:13 17:02:29
[root@test ~]#