Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

You can execute unattended-update 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 upgrades your system.

In addition to this I also want you to go through this site: https://help.ubuntu.com/12.04/serverguide/automatic-updates.html

Reply if you need any clarification.

share|improve this answer
1  
Thanks - I knew it had to be something simple. –  house9 Apr 7 at 23:43
    
@house9: Yes you are right :) –  Saurav Kumar Apr 7 at 23:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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