This command will update a single package upon request. This would be very useful if you want to update only a certain package. dpkg -s 2>/dev/null | grep -q Status.*installed && sudo apt-get install I found this tip here:
↧