3

I want to see a list of "New in repository" packages every time they appear after cache update. How can I achieve this?

Related questions:

How exactly does Synaptic keep track of "New in repository" packages?

Is there an RSS feed that alerts subscribers of new/updated packages in the official repositories?

int_ua
  • 8,892

3 Answers3

3

Set up an MTA on your system if you haven't already, so that emails sent from the command line will work.

Install the bsd-mailx package to give you a standard command mail to send emails to the MTA from the command line.

Write a script as follows:

#!/bin/sh

mkdir -p ~/new-package-detector
cd ~/new-package-detector
apt-cache search .|awk '{print $1}'|sort|uniq > new-package-list
if [ -f old-package-list ]; then
    comm -23 new-package-list old-package-list > new-in-repository
    if [ -s new-in-repository ]; then
        mail -s 'New packages available' int_ua@example.com < new-in-repository
    fi
fi
mv new-package-list old-package-list

Then set up a cron job to run your script regularly. You might need to add an apt-get update to the start of the script, too, in order to make sure that it happens before the check.

Robie Basak
  • 15,910
0

I think synaptic package manager already shows this information.

BHS
  • 137
0

I was just asking a wrong question. All I need is these RSS feeds:

Is there an RSS feed that alerts subscribers of new/updated packages in the official repositories?

int_ua
  • 8,892