6

It is really annoying to click the update icon and enter password every time to confirm updates.

How can I setup fully automatic updates without any prompts? (Not only security updates)
Some small notification about finished updates would also be nice.

I'm using Kubuntu 11.04 and KPackageKit.

1
  • There are some scripts floating around on the net. I'd suggest googling 'apt-get update', 'script', 'automate' and see what that gives you.
    – boehj
    Jun 1, 2011 at 14:20

2 Answers 2

6
  • Open the file manager as super user, e.g. sudo dolphin
    Be careful with such instance of file manager because you may delete something important and break your system
  • Create a file named autoupdate in /etc/cron.* (where * is hourly, daily, weekly, monthly depending on your preference). I used /etc/cron.hourly/.
  • Put the following contents into the file:

    #!/bin/bash
    apt-get update
    apt-get upgrade -y
    apt-get autoclean
    

    ... and save it.

  • Allow the file to be executed in its properties, or by using this: sudo chmod 755 autoupdate

And that's it! You will have your software automatically updated without any notifications
(of course, if you've turned off the notifications in update settings).
Thanks to boehj for the source of information: Automatic Weekly Package Updates Using Cron And Apt-Get

4
  • Open Kpackagekit
  • Uncheck confirmation dialog when installing or updating packages.
  • Uncheck Notify when updates available.
  • check all updates.

enter image description here

11
  • I think I've tried this, but there were simply no updates happening (I saw available updates piling up) Jun 1, 2011 at 15:26
  • 1
    @BlaXpirit: Well, if this doesn't work,maybe it is a bug. Also try the suggested idea by boehj above.Or wait for another answer.
    – Binarylife
    Jun 1, 2011 at 15:41
  • 1
    I'll take a look for a good script today if I get the time. There are plenty out there.
    – boehj
    Jun 1, 2011 at 19:53
  • @binarylife Nope, this doesn't work. I have 6 updates hanging there right now. Jun 4, 2011 at 20:21
  • 1
    @BlaXpirit: I haven't had time, but a Google search with 'apt-get update script automate' just now turned up some pages that may be useful. This page was the first result. Take a look at the section entitled "Advanced Alternative: Automatic Weekly Package Updates Using Cron And Apt-Get". That may be of use to you.
    – boehj
    Jun 5, 2011 at 9:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .