You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/extensions/update-linux-agent.md
+69Lines changed: 69 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,75 @@ sudo sed -i 's/# AutoUpdate.Enabled=n/AutoUpdate.Enabled=y/g' /etc/waagent.conf
274
274
sudo systemctl restart waagent.service
275
275
```
276
276
277
+
## Debian
278
+
279
+
### Debian 7 “Jesse”/ Debian 7 "Stretch"
280
+
281
+
#### Check your current package version
282
+
283
+
```bash
284
+
dpkg -l | grep waagent
285
+
```
286
+
287
+
#### Update package cache
288
+
289
+
```bash
290
+
sudo apt-get -qq update
291
+
```
292
+
293
+
#### Install the latest package version
294
+
295
+
```bash
296
+
sudo apt-get install waagent
297
+
```
298
+
299
+
#### Enable agent auto update
300
+
This version of Debian does not have a version >= 2.0.16, therefore AutoUpdate is not available for it. The output from the above command will show you if the package is up-to-date.
301
+
302
+
303
+
304
+
### Debian 8 “Jessie” / Debian 9 “Stretch”
305
+
306
+
#### Check your current package version
307
+
308
+
```bash
309
+
apt list --installed | grep waagent
310
+
```
311
+
312
+
#### Update package cache
313
+
314
+
```bash
315
+
sudo apt-get -qq update
316
+
```
317
+
318
+
#### Install the latest package version
319
+
320
+
```bash
321
+
sudo apt-get install waagent
322
+
```
323
+
324
+
#### Ensure auto update is enabled
325
+
First, check to see if it is enabled:
326
+
327
+
```bash
328
+
cat /etc/waagent.conf
329
+
```
330
+
331
+
Find 'AutoUpdate.Enabled'. If you see this output, it is enabled:
332
+
333
+
```bash
334
+
AutoUpdate.Enabled=y
335
+
AutoUpdate.Enabled=y
336
+
```
337
+
338
+
To enable run:
339
+
340
+
```bash
341
+
sudo sed -i 's/# AutoUpdate.Enabled=n/AutoUpdate.Enabled=y/g' /etc/waagent.conf
342
+
Restart the waagent service
343
+
sudo systemctl restart walinuxagent.service
344
+
```
345
+
277
346
## Oracle Linux 6 and Oracle Linux 7
278
347
279
348
For Oracle Linux, make sure that the `Addons` repository is enabled. Choose to edit the file `/etc/yum.repos.d/public-yum-ol6.repo`(Oracle Linux 6) or `/etc/yum.repos.d/public-yum-ol7.repo`(Oracle Linux), and change the line `enabled=0` to `enabled=1` under **[ol6_addons]** or **[ol7_addons]** in this file.
0 commit comments