What is difference between repo_upgrade and package_upgrade and apt_upgrade on cloud-init?

Viewed 570

In an example from AWS EC2 manual shows that we can perform apt update and upgrade by putting:

repo_update: true
repo_upgrade: true

But I can't find exactly same commands in cloud-init official documentation, so I keep looking for the similiar commands and found this, they give two commands package_upgrade and apt_upgrade but didn't tell the difference.

It makes me curious that what's the difference between repo_upgrade and package_upgrade and apt_upgrade

1 Answers

Yes this is quite puzzling, until I stumbled upon this, from which it seems that repo_upgrade applies to Amazon Linux only.

Also I found this ancient fan-made example.

It seems that most of the explanations are correct.

Related