Browse code

Initial Commit

Veselin Kolev authored on 19/12/2019 08:11:47
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,108 @@
1
+<!DOCTYPE html>
2
+<html lang="bg" xml:lang="bg">
3
+
4
+<head>
5
+   <meta name="author" content="Veselin Kolev" />
6
+   <meta name=viewport content="width=device-width, initial-scale=1">
7
+   <meta http-equiv="content-type" content="text/html; charset=UTF-8">
8
+   <link rel="stylesheet" href="../default.css" />
9
+   <title>Автоматични актуализации на пакетите с dnf</title>
10
+</head>
11
+
12
+<body>
13
+
14
+<!-- Main table -->
15
+
16
+<table class="main">
17
+
18
+<tr>
19
+
20
+<td style="vertical-align: top">
21
+
22
+<table class="head">
23
+   <tr>
24
+      <td>
25
+         <table>
26
+            <tr>
27
+               <td style="width: 0;">
28
+                  <a href="http://www.uni-sofia.bg"><img src="../images/header_su_logo_head.png" width="42" height="50" alt="" /></a>
29
+               </td>
30
+               <td>
31
+                  <h3 style="padding-left: 1em;">Документация за системите използвани в УИЦКТ на Софийски Университет "Св. Климент Охридски"</h3>
32
+               </td>
33
+            </tr>
34
+         </table>
35
+      </td>
36
+   </tr>
37
+</table>
38
+
39
+<a href="git.html">Начало</a> &gt; <a href="index.html">CentOS 8</a> &gt; Автоматични актуализации на пакетите с dnf
40
+
41
+<h3>Автоматични актуализации на пакетите с dnf</h3>
42
+
43
+<p>&#160;</p>
44
+
45
+<p>За да може пакетите в системата да се актуализират автоматично, трябва да инсталирате пакета dnf-automatic и да настроите съответната периодична услуга.</p>
46
+
47
+<p>Инсталирането на пакета dnf-automatic става така:</p>
48
+
49
+<pre>$ sudo dnf -y install dnf-automatic</pre>
50
+
51
+<p>За да разрешите използването на автоматични актуализации, отворете файла <code>/etc/dnf/automatic.conf</code>, намрете там реда:</p>
52
+
53
+<pre>apply_updates = no</pre>
54
+
55
+<p>и го променете на:</p>
56
+
57
+<pre>apply_updates = yes</pre>
58
+
59
+<p>Запазете промените във файла и изпълнете:</p>
60
+
61
+<pre>$ sudo systemctl enable --now dnf-automatic.timer
62
+$ sudo systemctl restart dnf-automatic.timer</pre>
63
+
64
+<p>Ако след това проверите статуса на автоматичните актуализации така:</p>
65
+
66
+<pre>$ sudo systemctl status dnf-automatic.timer</pre>
67
+
68
+<p>и всичко по-горе е изпълнено както трябва, ще видите статус "active", както е показано по-долу (със зелено):</p>
69
+
70
+<pre>● dnf-automatic.timer - dnf-automatic timer
71
+   Loaded: loaded (/usr/lib/systemd/system/dnf-automatic.timer; enabled; vendor preset: disabled)
72
+   Active: <span style="color: #4ae839; font-weight: bold;">active (waiting)</span> since Sat 2019-12-07 22:49:16 PST; 1 weeks 3 days ago
73
+  Trigger: Thu 2019-12-19 00:24:31 PST; 5h 23min left
74
+
75
+Dec 07 22:49:16 localhost.localdomain systemd[1]: Started dnf-automatic timer.</pre>
76
+
77
+</td>
78
+
79
+</tr>
80
+
81
+</table>
82
+
83
+<!-- End of main table -->
84
+
85
+<!-- Footer begin -->
86
+
87
+<p>&#160;</p>
88
+
89
+<hr style="border: 0px; border-bottom: 1px dashed #ccc;" />
90
+
91
+<p>Последна актуализация: 18 декември 2019</p>
92
+
93
+<p>Автор на първоначалната версия на документа: <a href="https://vessokolev.blogspot.com">Веселин Колев</a></p>
94
+
95
+<p>2019 <a href="https://www.uni-sofia.bg/index.php/bul/universitet_t/samostoyatelni_zvena/universitetski_cent_r_za_informacionni_i_komunikacionni_tehnologii">УЦИКТ</a>, <a href="https://www.uni-sofia.bg">Софийски Университет</a></p>
96
+
97
+<table>
98
+   <tr>
99
+      <td><a href="https://creativecommons.org/licenses/by-nc-sa/2.0/"><img src="../images/footer_cc_by.png" width="100" alt=""></a></td>
100
+      <td><img src="../images/footer_valid_html5.png" width="100" alt=""></td>
101
+      <td><img src="../images/valid_css.png" height="35" alt=""></td>
102
+   </tr>
103
+</table>
104
+
105
+<!-- Footer end -->
106
+
107
+</body>
108
+</html>
0 109
\ No newline at end of file