Results 1 to 3 of 3

Thread: Upgrade ClamAV from -backports without upgrading other packages

  1. #1

    Upgrade ClamAV from -backports without upgrading other packages

    I want to setup CRON to automatically update ClamAV at regular intervals. The problem I'm having is working out how to make aptitude or apt-get do it.
    Since I'm using the -backports repositry, I don't want to upgrade all packages that are available, only ClamAV.

    I'm using a script as follows:
    Code:
    #!/bin/sh
    aptitude -q update
    aptitude -q safe-upgrade clamav clamav-daemon
    I get an error saying safe-upgrade doesn't accept arguments.
    Can anyone correct my script to make it work as I would like?

    Cheers,
    Nap

  2. #2
    Join Date
    Jan 2007
    Beans
    6,543
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Upgrade ClamAV from -backports without upgrading other packages

    You can just use "install", if there's a newer version available it'll upgrade it (since an install and an upgrade are essentially the same thing).

    However, you can also just set your package manager to automatically install all security updates.
    Last edited by Paqman; August 3rd, 2012 at 12:07 PM.

  3. #3

    Re: Upgrade ClamAV from -backports without upgrading other packages

    paqman, thnx.
    I've gone with the install method. It was a bit simpler to understand.
    I also found a useful update/scan script at http://code.google.com/p/clamav-cron/ which sends an email report to nominated recipients. A target folder can be specified for the scan. But for ubuntu users, the /bin/mail at the end of the script needs to be changed to /usr/bin/mail.
    I created two scripts out of this one; one for the update, one for the scan. And I run them on different cycles.

    Cheers,
    Nap

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •