Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 8025  / 1 Year ago, sat, april 15, 2023, 4:56:05

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.


More From » kubuntu

 Answers
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


[#44915] Saturday, April 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
arkcker

Total Points: 296
Total Questions: 111
Total Answers: 104

Location: Nepal
Member since Tue, Sep 8, 2020
4 Years ago
arkcker questions
Tue, Aug 17, 21, 00:08, 3 Years ago
Sun, May 14, 23, 01:04, 1 Year ago
Wed, Nov 16, 22, 03:12, 1 Year ago
Tue, Jun 1, 21, 01:29, 3 Years ago
;