How do you install klamav in Linux using apt-get command?
Here is a tutorial to learn how to install klamav using apt-get command.
Step 1: Open terminal with su access and enter the command as shown below:
apt-get install klamav -y
Step 2: After completion, the install command exits and instructs the user to restart the running instances of klamav if it is running already.
Result of the Command Execution shown below:
root@hiox:~ apt-get install klamav -y
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
x11 apps texlive common libmono data tds2.0 cil libmono c5 1.0 cil
lib32bz2 1.0 liblash2 libjna java python packagekit libxcb aux0 libedit2
php fpdf menu xdg libsm dev jsvc menu libnumber compare perl
libpackagekit qt 12 libjaxp1.3 java libswscale0 libcdio10 libdb je java
libmono npgsql2.0 cil krita data junit4 espeak python notify
libmono security2.0 cil libgsf 1 common xfonts 75dpi byobu python pyorbit
rpm2cpio xsltproc libxcb atom1 libg15daemon client1 libnb apisupport1 java
llvm libmono wcf3.0 cil gpsim libice dev liboro java libmono peapi2.0 cil
libavutil49 debootstrap libaiksaurus 1.2 data libappframework java
libdigest sha1 perl libflite1 gputils doc fakeroot kword data libxrandr dev
libmono system data1.0 cil libkonqsidebarplugin4 libgmime 2.4 2
libnb javaparser java libnet ip perl libdb4.7 java libmono simd2.0 cil
libmono system2.0 cil libmono1.0 cil xfonts scalable libexpat1 dev
libcdio paranoia0 libiw dev libmono system ldap1.0 cil libwebkit 1.0 common
squashfs tools libxerces2 java libmono0 libiceutil33 gamin ltspfs
libnet dns perl libxdamage dev lib32ncurses5 pkg config libgcj bc
gcj 4.4 base libmono getoptions1.0 cil libmono cscompmgd8.0 cil
libmono data1.0 cil ktorrent data libkpathsea5 xbase clients
preview latex style libmono sharpzip0.84 cil libmono sqlite2.0 cil lvm2
libmono ldap1.0 cil latex xft fonts libpthread stubs0 libavc1394 0
esound clients smbclient libjtidy java libbonobo2 common libjzlib java
libprotobuf5 gnome mime data libcfitsio3 libmono management2.0 cil zenity
libicu4j java libboost system1.40.0 libfreemarker java libservlet2.4 java
libdb4.7 java gcj desktop file utils pulseaudio dnsutils konqueror nsplugins
libcommons beanutils java libcairo perl gputils libfluidsynth1 libgtk2 perl
libbeagle1 libmono corlib2.0 cil libxfixes dev g++ 4.4
libboost signals1.40.0 junit dhcp3 server php5 icedtea netx lxde icon theme
libsdl mixer1.2 libmono system web mvc1.0 cil libglew1.5
libfile find rule perl libasm2 java tftpd hpa libproxy0 libjpeg progs
libnspr4 dev default jdk doc libxcb render util0 dev llvm dev krb5 config
libmono cairo2.0 cil libtagc0 libmono relaxng1.0 cil python newt
libbonobo2 0 libtdb1 libvte common libsctp1 libgnomevfs2 common
texlive pstricks libavfilter0 libgnomevfs2 extra lbreakout2 data lmms common
libnb platform devel java x11proto xinerama dev libdca0 screen
x11proto render dev libxi dev texlive extra utils m4 gconf2 at java common
ed libmono i18n west2.0 cil texlive latex base librpmio0 librpm0
texlive fonts recommended javahelp2 pulseaudio module x11 rpm common
auth client config icedtea 6 jre cacao notification daemon gcj 4.4 jre lib
libpixman 1 dev libsqlite0 groff base libfftw3 3 libdirectfb extra
libswingx java libdotconf1.0 libmono microsoft7.0 cil default jre headless
libmono system messaging2.0 cil libavdevice52 libnotify1
libmono system web1.0 cil libstartup notification0 libass4 libjs prototype
libapache2 mod php5 libavahi glib1 subversion openvpn blacklist
linux source 2.6.32 libmono accessibility1.0 cil libcommons logging java
libmono webbrowser0.5 cil libmono posix2.0 cil jetty g++ mono runtime
libvisual 0.4 0 libfontconfig1 dev libcln6 libsensors applet plugin0
libcommons compress java libcanberra0 openjdk 6 jre lib dcraw kompozer data
libnss3 dev xorg docs core x11proto kb dev libswingworker java luatex
x11proto randr dev libsoup gnome2.4 1 caps texlive generic recommended
libxinerama dev libcap2 bin libmono system runtime2.0 cil mono 2.0 devel
libavcodec52 gcc 4.4 libopenctl0 x11 session utils libpango perl libgcj10
texlive latex recommended libc6 i386 jruby1.1 texlive font utils
mono csharp shell libgssrpc4 libopagent1 libobparser21 libgamin0 lib32gcc1
libpcrecpp0 libnova 0.12 2 texlive latex recommended doc libg15render1
update manager core libsvn1 openjdk 6 jre headless xtrans dev libatk1.0 dev
ruby1.8 libwnck22 libportaudio2 libsexy2 latex beamer libcue1 libmenu cache1
libxcb event1 gputils common libmcrypt4 samba common libiec61883 0 libelf1
libforms1 texlive binaries lib32asound2 libxres1 libmono i18n1.0 cil gettext
ant php pear time libmono oracle1.0 cil arj x11proto input dev
libnb platform11 java tipa python glade2 xmms2 plugin id3v2 libvirt0 ruby
texlive latex base doc libmono messaging2.0 cil libgp11 0 default jdk
libmono rabbitmq2.0 cil libenca0 latex xcolor libjsch java libsvn java rtkit
libpulse browse0 libjetty java doc libexempi3 x11proto fixes dev
koffice libs fckeditor mingw32 runtime libqt4 gui libt1 5 gcc libgdu0
libxml commons resolver1.1 java libpkcs11 helper1 libcobertura java
libgnome2 common xpdf reader default jre libjs scriptaculous
libmono winforms1.0 cil libfli1 python xapian apt xapian index libxen3
libmono db2 1.0 cil ant optional pulseaudio esound compat binfmt support
libesd0 libmikmod2 libmono system data2.0 cil openssh client
libcommons net java libresid builder0c2a libreadline5 libmono2.0 cil
x11 xfs utils krosspython libmono system ldap2.0 cil speech dispatcher
libmono bytefx0.7.6.1 cil libmono data tds1.0 cil libgnomevfs2 0 kdebase bin
x11proto xext dev espeak data mono gac texlive luatex libxt dev
libmono sharpzip2.6 cil libcroco3 libmono getoptions2.0 cil
libboost thread1.40.0 tzdata java libmono data2.0 cil libevent 1.4 2
libxext dev python cairo libpulse mainloop glib0 libgme0
libmono npgsql1.0 cil libgsf 1 114 libgtop2 common librarian0 freepats
libmono ldap2.0 cil libmono messaging rabbitmq2.0 cil
libmono security1.0 cil libphp phpmailer libspeexdsp1 libiptcdata0
x11proto damage dev lyx common php xml htmlsax3 rsync manpages ffmpeg
nbd server libmono peapi1.0 cil libvncserver0 kstars data mono 2.0 gac
libpostproc51 pax libglib2.0 dev libwv2 4 texlive fonts recommended doc pgf
zlib1g dev libdevmapper event1.02.1 lesstif2 liblzo2 2 hddtemp
libmono system1.0 cil libdate calc perl libcairo2 dev xfonts 100dpi
libspeechd2 esound common monodoc base lxmenu data xmms2 plugin alsa
libnb java3 java libservlet2.5 java libglib perl libwildmidi0
openssl blacklist libmono sharpzip0.6 cil xinit libradius1
libmono cscompmgd7.0 cil liborc 0.4 0 gstreamer0.10 pulseaudio libraw1394 11
libespeak1 libfreetype6 dev libshout3 libgsm1 libdv4 libdvdnav4 fancontrol
libservlet2.3 java libmono sqlite1.0 cil libmono sharpzip2.84 cil libxau dev
librpmbuild0 libxmmsclient6 debconf utils libcarp clan perl mingw32 binutils
libfs6 libdvdread4 libmpdclient2 libmono relaxng2.0 cil stk packagekit
libtext glob perl libschroedinger 1.0 0 libksignalplotter4
libtotem plparser17 libavformat52 libmono microsoft build2.0 cil
libslf4j java libcommons daemon java libnfsidmap2 libindi0 libdc1394 22
libmono dev libkate1 libcdaudio1 libmimic0 libgtop2 7 xmms2 core
libkadm5clnt mit7 libswing layout java libvisual 0.4 plugins libcap ng0
libapparmor1 texlive base libregexp java libgnomeui common
update manager kde xz utils libmono cecil private cil libmono corlib1.0 cil
wwwconfig common psutils libsidplay2 libqtgtl0 python gdbm libkadm5srv mit7
libc6 dev python wicd libpackagekit glib2 12 libmono microsoft8.0 cil
libg15 1 liblua5.1 0 libzeroc ice33 libmono system web2.0 cil
libxcomposite dev libmono cairo1.0 cil brasero common libsoundtouch1c2
libstk0c2a libwnck common libxcb render0 dev app install data libxrender dev
xmms2 plugin vorbis libxmmsclient glib1 libmpg123 0 libmad0
libmono accessibility2.0 cil ant optional gcj xorg php5 ldap
texlive doc base texlive latex extra libpq5 librpcsecgss3 man db libid3tag0
libavahi compat libdnssd1 ca certificates java html2text libcdio cdda0
imagemagick texlive latex extra doc lib32z1 libhamcrest java liblucene2 java
xmms2 plugin mad libgvfscommon0 php5 mysql libmono i18n west1.0 cil
libxft dev texlive pictures libx11 dev liboil0.3 libmhash2
libaiksaurus 1.2 0c2a openjdk 6 doc libkdb5 4 lib32stdc++6 miscfiles
libmono bytefx0.7.6.2 cil x11proto composite dev linux libc dev
libcommons collections3 java patch manpages dev libbeansbinding java
samba common bin libcelt0 0 libgcj common openvpn libdirac encoder0
libgtlcore0 libboost regex1.40.0 tap plugins php5 cli libruby1.8
libmono system messaging1.0 cil info lib32v4l 0 libdbus 1 dev libc dev bin
watershed libxcb1 dev libgssglue1 wicd daemon openjdk 6 jdk tinymce
libmono posix1.0 cil ant gcj libbonoboui2 common libcommons digester java
python iniparse libdirectfb dev binutils systemsettings libjpeg62 dev
texlive pictures doc portmap libini4j java libjson glib 1.0 0
libdbus glib 1 dev ncurses term libjetty java p7zip full openjdk 6 jre
libmono i18n2.0 cil libpam gnome keyring texlive pstricks doc
liblog4j1.2 java libnb svnclientadapter java php5 common
libmono oracle2.0 cil libjline java wicd gtk php gettext
libmono system runtime1.0 cil tex common lacheck gstreamer0.10 plugins base
x11proto core dev javascript common python gtk2 python gconf
libdigest hmac perl gnome doc utils libnb ide12 java dvb apps koffice data
libxdmcp dev libpthread stubs0 dev libsysfs dev pulseaudio utils libofa0
libxcursor dev python libxml2 libgnomecanvas2 common libgdiplus libmms0
libmono winforms2.0 cil oprofile libbit vector perl xpdf common libllvm2.7
libasound2 plugins libjs mootools libsoup2.4 1 libboost filesystem1.40.0
libstdc++6 4.4 dev mono gmcs libfaad2 mercurial common
packagekit backend apt libaudiofile0 libsmpeg0 libpng12 dev
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libtommath0
The following NEW packages will be installed:
klamav libtommath0
0 upgraded, 2 newly installed, 0 to remove and 64 not upgraded.
Need to get 988kB of archives.
After this operation, 2,896kB of additional disk space will be used.
Get:1 http://old releases.ubuntu.com/ubuntu/ lucid/main libtommath0 0.39 3ubuntu1 [64.6kB]
Get:2 http://old releases.ubuntu.com/ubuntu/ lucid/universe klamav 0.46 3 [924kB]
Fetched 988kB in 1s (512kB/s)
Selecting previously deselected package libtommath0.
(Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 167790 files and directories currently installed.)
Unpacking libtommath0 (from .../libtommath0_0.39 3ubuntu1_amd64.deb) ...
Selecting previously deselected package klamav.
Unpacking klamav (from .../klamav_0.46 3_amd64.deb) ...
Processing triggers for hicolor icon theme ...
Processing triggers for desktop file utils ...
Processing triggers for man db ...
Setting up libtommath0 (0.39 3ubuntu1) ...
Setting up klamav (0.46 3) ...
Processing triggers for libc bin ...
ldconfig deferred processing now taking place
root@hiox:~