bsdci / libioc

A Python library to manage jails with ioc{age,ell}
https://bsd.ci/libioc
Other
38 stars 11 forks source link

Package updates #588

Open gronke opened 5 years ago

gronke commented 5 years ago

Packages installed with the iocage.Pkg module need to be updated. The current procedure to update packages is to run the installation ioc pkg <JAIL> <packages> again.

Instead a dedicated upgrade command should first upgrade packages in the local mirror and then run a full upgrade in the jail itself. Both steps should be independent, so that a release package mirror can be upgraded without requiring any jail.

Pull updates of all mirrored packages

ioc pkg upgrade

Pull updates and upgrade them in the jail

ioc pkg upgrade <JAIL>