Search This Blog

Tuesday, January 31, 2017

How to install Clamav and ClamTk 5.xx on Fedora, RHEL, CentOS, SL, OL

Before installing of ClamTk, be sure, that you have epel repository, and it's activated. Just you can check it, like this:

user$ yum repolist

You should see epel repository, if you didn't see, install it or activate, just fix it.
And also you'll need w3m internet browser, you can check for it like this:

user$ w3m 

You should see commands, if you got error that command not found, then install w3m:

root# yum install w3m 

If everything is ok, then you can install clamtk, just type this:

//   This example will show how to install clamtk for EL 6 users.
//
//   Fedora users have to change "el6." to "fc."
//   EL 7 (RHEL, OL, CentOS, SL, SC) users must change "el6." to "el7.", 
// 
//   "el6." marked with red color, so easy find it.

1. user$ echo "https://bitbucket.org/dave_theunsub/clamtk/downloads/" > c01
3. user# wget $(cat c01)$(w3m -no-cookie -dump $(cat c01) | grep el6. | awk '{print $1}' | sed -n '1p')
3. user$ su
4. root# yum install clamtk*
5. root# rm c01

That was the shortest way to install clamtk.
Open ClamTk, it should work, if everything ok, then you'll need to update virus database.

user$ wget http://database.clamav.net/main.cvd
user$ wget http://database.clamav.net/daily.cvd
user$ wget http://database.clamav.net/bytecode.cvd
user$ cp *.cvd ~/.clamtk/db/

Now you can use a program, scan your files or folders.


No comments: