Projekt

Allgemein

Profil

Setup yum-cron » Historie » Version 2

Jeremias Keihsler, 13.01.2017 12:59

1 1 Jeremias Keihsler
h1. Install Procedure for yum-cron
2
3
h2. Requirements
4
5
To install yum-cron you will need the following:
6
* a installed and supported operating system (e.g. CentOS 6.x)
7
* root-access
8
* a fast internet connection
9
10
h2. Preliminary Note
11
12 2 Jeremias Keihsler
This procedure is based on a documentation supplied by http://www.gtkdb.de/index_7_1865.html
13 1 Jeremias Keihsler
14
yum-cron allows for automated updates of CentOS.
15
16
h2. Install yum-cron
17
18
<pre><code class="bash">
19
yum install yum-cron
20
</code></pre>
21
22
h2. Configure yum-cron
23
24
the configuration of yum-cron happens by
25
<pre><code class="bash">
26
vim /etc/sysconfig/yum-cron
27
</code></pre>
28
29
most settings may be left with default values, maybe you want to send the output to someone else but yourself
30
<pre>
31
MAILTO=user@example.com
32
DAYS_OF_WEEK="45"
33
CLEANDAY="4"
34
</pre>
35
36
h2. Automatic yum-cron
37
38
Manually start the service
39
<pre><code class="bash">
40
/etc/init.d/yum-cron start
41
</code></pre>
42
you can set the runlevels of yum-cron by
43
<pre><code class="bash">
44
chkconfig yum-cron on
45
</code></pre>
46
you can check the runlevels by
47
<pre><code class="bash">
48
/sbin/chkconfig --list yum-cron
49
</code></pre>
50
you should get an output like:
51
<pre><code class="bash">
52
yum-cron     0:off   1:off   2:on   3:on   4:on   5:on   6:off
53
</code></pre>