Upgrade `juju`

See also:

This document demonstrates how to upgrade juju.

Ensure you’ve created a backup of your ./local/share/juju before starting the upgrade process for the client.

If the Juju client was installed via snap, the updates to the client should be handled automatically. You can see the latest version of the installed snap by calling snap info juju.

$ snap info juju
name:      juju
summary:   A model-driven operator lifecycle manager
publisher: Canonical✓
store-url: https://snapcraft.io/juju
contact:   https://canonical.com/
license:   unset
refresh-date: 6 days ago, at 05:14 BST
channels:
  latest/stable:    2.9.4              2021-06-08 (16423) 99MB classic
  latest/candidate: 2.9.5              2021-06-17 (16559) 99MB classic
  latest/beta:      ↑
  latest/edge:      3.0-beta1-6f9ca9d  2021-06-14 (16531) 85MB classic
  2.9/stable:       2.9.4              2021-06-08 (16423) 99MB classic
  2.9/candidate:    2.9.5              2021-06-17 (16559) 99MB classic
  2.9/beta:         ↑
  2.9/edge:         2.9.5-2fe7a0f      2021-06-17 (16555) 99MB classic
  2.8/stable:       2.8.11             2021-06-10 (16475) 74MB classic
  2.8/candidate:    ↑
  2.8/beta:         ↑
  2.8/edge:         2.8.12-98e51af     2021-06-17 (16563) 74MB classic
  2.7/stable:       2.7.8              2020-07-22 (13563) 77MB classic
  2.7/candidate:    ↑
  2.7/beta:         ↑
  2.7/edge:         2.7.9+2.7-46f947e  2020-07-22 (13578) 82MB classic
  2.6/stable:       2.6.10             2019-10-30  (9484) 69MB classic
  2.6/candidate:    ↑
  2.6/beta:         ↑
  2.6/edge:         2.6.11+2.6-b96e122 2020-01-22 (10408) 75MB classic
  2.5/stable:       2.5.8              2019-06-27  (8361) 67MB classic
  2.5/candidate:    ↑
  2.5/beta:         ↑
  2.5/edge:         2.5.9+2.5-36af233  2019-07-24  (8546) 73MB classic
  2.4/stable:       2.4.7              2019-05-23  (6012) 58MB classic
  2.4/candidate:    ↑
  2.4/beta:         ↑
  2.4/edge:         ↑
  2.3/stable:       2.3.9              2018-09-19  (5267) 55MB classic
  2.3/candidate:    ↑
  2.3/beta:         ↑
  2.3/edge:         2.3.10+2.3-41313d1 2019-03-25  (7080) 55MB classic
installed:          2.8.11                        (16475) 74MB classic

If a new release has been released and the juju snap hasn’t been refreshed, you can manually trigger this with sudo snap refresh juju.

Moving from one channel to another can be done using the --channel argument.

sudo snap refresh --channel=latest juju

Last updated 5 months ago.