Use distro agnostic way of install/update packages
Bug #785570 reported by
Garrett Holmstrom
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Won't Fix
|
Wishlist
|
Unassigned |
Bug Description
CloudConfig.
apt-get upgrade -> pkcon upgrade
apt-get install -> pkcon install
apt-get update -> pkcon refresh
AFAICT, pkcon's "-y" option is equivalent to passing "--force-confdef", "--force-confold" and "--assume-yes" to the appropriate programs. Passing "-p" to pkcon makes its output suitable for logging. Unfortunately there doesn't seem to be an option to silence its output completely, but its stdout could always be dropped.
Changed in cloud-init: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
summary: |
- Use pkcon instead of apt-get in lib methods + Use distro agnostic way of install/update packages |
To post a comment you must log in.
An alternative to this is to instead come up with a common interface that package manager-specific backends can implement. There was a short IRC discussion about that, but so far nothing has happened toward that end.