Installazione Clamav in Debian

From RVM Wiki
Revision as of 10:54, 14 January 2010 by Gabriele.vivinetto (talk | contribs)
Jump to navigation Jump to search

Aggiunta fonte Apt

Debian Etch

sudo cat | sudo tee -a /etc/apt/sources.list > /dev/null  <<EOFile
deb http://volatile.debian.org/debian-volatile  etch/volatile   main contrib non-free
EOFile

  • Pinning
cat | sudo tee -a /etc/apt/preferences > /dev/null <<EOFile
Package: clamav
Pin: origin volatile.debian.org
Pin-Priority: 1100

Package: *
Pin: release a=etch
Pin-Priority: 700
EOFile

Debian Lenny

  • Aggiungere la fonte, se non già presente:
if (grep -q volatile /etc/apt/sources.list)
then 
  echo "Volatile source is already present. Check it:"
  cat /etc/apt/sources.list | grep volatile
else
   sudo cat | sudo tee -a /etc/apt/sources.list > /dev/null  <<EOFile
deb http://volatile.debian.org/debian-volatile  lenny/volatile   main contrib non-free
EOFile

  echo "Volatile source added. Check it:"
  cat /etc/apt/sources.list | grep volatile
fi


Installazione

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install clamav clamav-daemon

Installazione decompressori

sudo apt-get install unrar-free arj unzip unace