[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-show-versions Question



Based on a recent thread on this list, I've constructed the following
bash script:

#!/bin/sh
# /etc/cron.daily/apt-show-versions: email alerts when new packages
# are available
#
# 2003-03-10, Shaun Crossley, shaun@whatever.ca

ADMINMAIL=stephen@frank.exitwound.org

/usr/bin/apt-show-versions -u | /usr/bin/mail -e -s "`/bin/hostname`:
updated packages available" $ADMINMAIL

I have one machine that _never_ reports any available updates, and I
have another machine that _always_ reports available updates -- even
when there are none available.  For example, recently I performed:

# apt-get update
# apt-get upgrade

And received a response that no updates were available.  However, the
script emailed me a list of approximately 50 available updates in the
form of:

dnsutils/testing upgradeable from 1:9.2.1-4 to 1:9.2.2-2
ksirc 4:2.2.2-14.6 newer than version in archive
khexedit 4:2.2.2-9.2 newer than version in archive
libpng3/testing upgradeable from 1.2.1-1.1 to 1.2.5-10
korn 4:2.2.2-14.6 newer than version in archive
etc.

Am I missing something?  I'm sure that I'm doing something wrong, but
I'm not seeing it.  Any input would be appreciated.

Thanks.
-- 
steve
 ___________________________________________________
|                                                   |
| There's a difference between being grumpy and     |
| hating every little fucker in existence.          |
|                                                   |
| http://monticello.biz     : technology that works |
| http://exitwound.org      : hard to find          |
| http://exitwound.org/wiki : experimental & fading |
| http://exitwound.org/post : the next generation   |
| http://buckowensfan.com   : he's the man          |
 ---------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: