This is probably an easy thing to do but I found no answers while googling for it.

I have unattended-upgrades installed and running successfully for the past few months. It will run again tonight - but I want to run it right now.

Is there a simple command to do so?

I know it is a cron job, ideally it would execute in the same context as it always does

I am running Ubuntu 12.04 LTS, if that helps.


You can execute unattended-upgrade with -d option to run it any time you want :)

Open terminal and execute this command:

sudo unattended-upgrade -d

It will start checking for available updates and if found it will upgrade your system.

In addition to this I also want you to go to this site:


May 24, 2018: Changing the URL for18.04 as 12.04 is expired.

Reply if you need any clarification.

  • @house9: Yes you are right :) – Saurav Kumar Apr 7 '14 at 23:44
  • -d, --debug extra debug output into /var/log/unattended-upgrades/unattended-upgrades.log – Pétur Ingi Egilsson Sep 10 '20 at 6:57
  • The --dry-run may be also helpfull to see if there are any updates avaliable before actually installing them using -d switch. – Lion Dec 24 '20 at 15:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.