nuageinit: more package related functions
Implement package_update and package_upgrade, which allows to launch
an update of the metadata and an upgrade of the packages.
Sponsored by: OVHCloud
(cherry picked from commit 682af9601aebb71357d05bb9ffbc137958a437cf)