Package updates and charm responsibilities

José Antonio Rey jose at ubuntu.com
Thu Apr 10 10:44:58 UTC 2014


I think that on new machines (at least on the bootstrap node) apt-get
update and apt-get upgrade is done when starting. I'm not too sure about
it, though. Otherwise, you wouldn't be able to get the latest version of
a package.

On 04/10/2014 05:00 AM, Stuart Bishop wrote:
> Hi.
> 
> Should a charm be responsible for running 'apt-get update', 'apt-get
> upgrade' etc?
> 
> If so, which hooks should invoke this behavior?
> 
> Of course, sometimes a charm has no choice about 'apt-get update', for
> example when a config-changed hook needs to add a PPA.
> 

-- 
José Antonio Rey



More information about the Juju mailing list