This is a simple solution to get notified of the number of available package updates in your shell.
It runs apt update
regularly in the background and saves the line XX packages can be upgraded
to a file if any updates are available. If not, the file is deleted. When you open a terminal window,
the existance of this file is checked and if positive, its content is echoed.
- You may want to have anacron installed.
- Copy
aptchecker
and60aptchecker
to their according directories mentioned in the comments. - Add a symlink for
/opt/bin/aptchecker
to/etc/cron.daily
:ln -s /opt/bin/aptchecker /etc/cron.daily/
- Add the line from
bashrc-snippet
to your.bashrc
(or whatever shell you may use).