I made a simple update script. Now My question was is it possible to run it automatically by loggin in on the Ubuntu Desktop and automatically provide my password (sudo
) for this so I don't have to do anything to keep it updated.
This is my script:
#!/bin/bash
sudo apt-get update
sudo apt-get dist-upgrade -y
I would really be helped with this.
sudo apt-get update
first. This will update the package list, which will then be used for the upgrade. – Pabi Jul 23 '14 at 10:24