#!/usr/bin/python #Update cleaner for Debian Linux based systems __module_name__ = "Update Cleaner" __module_version__ = "1.0" __module_description__ = "Updates software sources list and packages. This program even removes obsolete packages." #Import the string and os functions import string import os #Prompt the user print string.upper('System Updating and cleaning...') #Update the system os.system('sudo apt-get update && sudo apt-get upgrade') #Clean the system os.system('sudo apt-get autoclean && sudo apt-get autoremove') #End the program print string.upper('System Updated and free of obsolete packages!') #EOF