You are not logged in.

#1 2010-10-04 15:32:36

gmacon
Member
Registered: 2010-10-04
Posts: 5

autoup.pl - Quieter automatic pacman updates

I'm managing several Arch boxes, and using safepac to semi-automatically keep the systems up-to-date. However, I wanted quieter operation. Instead of getting an email from each box every morning (giving the /previous/ morning's info) I wanted messages only when there was something to do. So I wrote this Perl script that acts as an automated front-end to pacman.

* Like safepac, it reads the news before updating packages.
* Unlike safepac, it produces only "interesting" output.
* Unlike safepac, output is delivered immediately, instead of 24 hours later (since I only run this once a day, safepac's batching doesn't give me anything).

I also added one additional feature: When daemons are updated, they are automatically restarted. If there's a critical daemon that you want to restart manually, include that package in IgnorePkg, and you'll get email when the package has updates.

The script is available at http://www.prism.gatech.edu/~gmacon3/autoup.pl

Documentation is at the top of the script.

Let me know if you have any questions.

Offline

Board footer

Powered by FluxBB