Automatic Package Updates in ubuntu Using cron-apt
If you have installed the full desktop version of Ubuntu, everything you need is already installed and running. Package updates can be scheduled from the desktop. For the server or costumised installation then you need to install apt-cron.
If you want to change when the system update itself in a full ubuntu desktop version,you have to go to System–>Administration –>Software sources
Then shedule automatic update for daily. weekly …
Now if you have an costumised ubuntu or an ubuntu server for example, and you want that the updates to be installed automaticaly, then you may need to install apt cron.
cron-apt package, combines the cron and apt utilities, and provides flexibility and a simpler interface as well as supporting e-mail alerts on errors or new information.
cron-apt automatically adds the
-d flag, so you’ll have to run
apt-get dist-upgrade to install the changes. You can install
cron-apt using apt:
sudo apt-get install cron-apt
You can find the configuration file of cron-apt in /etc/cron-apt/config, except how often the script runs, that’s depended on
cron so you can find it in /etc/cron.d/cron-apt. One popular configuration change is to add the line:
This will make sure an e-mail is always sent when the update runs, rather than only when an error occurs.
Add cron-apt to cron.daily
To make cron-apt be executed by Anacron, create a link in /etc/cron.daily or /etc/cron.weekly. For example:
sudo ln -s /usr/sbin/cron-apt /etc/cron.weekly/
For daily updates :
sudo ln -s /usr/sbin/cron-apt /etc/cron.daily/
For Hourly updates :
sudo ln -s /usr/sbin/cron-apt /etc/cron.hourly
Like us on Facebook
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Setup DNS Server On openSUSE 13.1 : What is DNS Server? As you might know, DNS, Domain Name System, is a system that resolves Domain ...0 comments |
- How To Upgrade From Ubuntu 13.04 Raring To Ubuntu 13.10 Saucy Salamander : Ubuntu 13.10 Saucy will be released on October 17th. Hope it will come with lot of improvements and ...0 comments |
- Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...1 comment |
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint : Tor, The Onion Router, is a network of Virtual Tunnels that allows users to communicate securely and...0 comments |
- Install and Configure Samba share in Ubuntu 13.10 'Saucy Salamander' , 13.04| Howto : Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help w...0 comments |
- Setup DNS Server On openSUSE 13.1
- TeamViewer 9 Final Has Been Released!
- Twelve Vulnerabilities Have Been Fixed In Ubuntu 12.04, Time To Update
- OpenLDAP Installation and Configuration in Ubuntu 12.10/13.04/13.10 And Debian 6/7
- Configure Your Browser To Use Tor On Ubuntu/Debian/Linux Mint
- Setup A Full Featured ITIL Management System Using Integria IMS On CentOS 6
- Install LibreOffice 4.1.3 in Elementary OS ‘Luna’
- How To Install Simple Scan in Crunchbang ‘Waldorf’
- Selene Media Encoder: Convert Audio, Video Files To Most Popular Formats
- Linux Kernel 3.12.2 Is Available For Download! Install / Upgrade Instructions
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .