update-conf

By chimo on (updated on )

I recently integrated `update-conf` (from the alpine-conf package) in my `apk upgrade` workflow.

I already had a terribly named `uh` alias (short for “update host”, in contrast to my other alias `uc` which is short for “update containers”). This alias would run `apk upgrade` and then re-run my “updates” block for shuibar so that I get fresh data in my status bar.

I converted the `uh` alias to a function, which checks for the presence of .apk-new files with `update-conf`. If any are found, the function exits showing me a list of files that need review.

Basically, I want to force myself to action .apk-new files, otherwise I cannot upgrade. I like to have my shuibar short and concise, so the constant reminder that upgrades are available will probably be enough for me to review the .apk-new files (as opposed to ignore pending updates).

I’ll let this sit for a while and see how it goes, but I’ll probably re-run update-conf after upgrades to flag new .apk-new files so that I can action them as they appear as opposed to whenever I run updates next.