losuler / zypper-automatic

Automatically install and notify of updates in openSUSE.
GNU General Public License v3.0
2 stars 2 forks source link

How do I set `zypper-automatic` to install *all* available patches? #1

Open jdrch opened 1 year ago

jdrch commented 1 year ago

Hi, just wondering the above. It would seem from reading the zypper docs linked to that patch_categories = optional would do the trick, but I just want to make sure.

losuler commented 1 year ago

You could test by running the command this script does, with and without --category optional and see, but admittedly I only ever used this (besides testing back when I wrote this) without specifying category. https://github.com/losuler/zypper-automatic/blob/a8a6b4e8a83a0b460a12423b84852e485b873724/main.py#L64

Based on the man page, it says that specifying --category will "List only patches with this category"^1. I think maybe what you're after is what --with-optional provides:

Note that the patch command does not apply optional patches (category optional or feature) by default. If you actually want to consider all optional patches as being needed, say patch --with-optional.

jdrch commented 1 year ago

Thanks very much. I'm gonna try yast2's online update config and see how that works out.