Skip to content

Commit 819bcde

Browse files
authored
Merge pull request #101088 from MicahMcKittrick-MSFT/patch-317
MicrosoftDocs/azure-docs#44369
2 parents 7689029 + 8dbea92 commit 819bcde

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

articles/virtual-machines/extensions/update-linux-agent.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,75 @@ sudo sed -i 's/# AutoUpdate.Enabled=n/AutoUpdate.Enabled=y/g' /etc/waagent.conf
274274
sudo systemctl restart waagent.service
275275
```
276276

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+
277346
## Oracle Linux 6 and Oracle Linux 7
278347

279348
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

Comments
 (0)