File: package_update_upgrade.rst

package info (click to toggle)
cloud-init 25.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,412 kB
  • sloc: python: 135,894; sh: 3,883; makefile: 141; javascript: 30; xml: 22
file content (30 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.. _cce-update-upgrade:

Update, upgrade and install packages
************************************

These examples show you how to install, update, and upgrade packages during
boot.

For a full list of keys, refer to the
:ref:`package update upgrade install <mod_cc_package_update_upgrade_install>`
module schema.

Install arbitrary packages
==========================

.. code-block:: yaml

    #cloud-config
    packages:
     - pwgen
     - pastebinit
     - [libpython2.7, 2.7.3-0ubuntu3.1]

Update and upgrade packages
===========================

.. literalinclude:: ../../../module-docs/cc_package_update_upgrade_install/example1.yaml
   :language: yaml
   :linenos: