I wanted the system to send me a mail every month the updates it has for the packages, i tried using subprocess.Popen, thought to redirect the output to stdin and write it to a file, but it was terrible…something which i could do easily in bash
apt-get -V upgrade > upgrade.log
after much of research I stumbled across python-apt http://www.wwclass.com/doc/python-apt/html/ and ola it worked like charm!!! below is the script.. Continue Reading…