coreos / rpm-ostree

⚛📦 Hybrid image/package system with atomic upgrades and package layering
https://coreos.github.io/rpm-ostree
Other
847 stars 190 forks source link

[RFE] Add a --exclude option for rpm-ostree install #4734

Open Justinzobel opened 7 months ago

Justinzobel commented 7 months ago

DNF can install a package or packages and exclude some from the group.

For instance, the command to install multimedia codecs on Fedora is:

sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-plugin-libav  --exclude=gstreamer1-plugins-bad-free-devel 

However it doesn't understand the exclude option: error: Unknown option --exclude=gstreamer1-plugins-bad-free-devel

boredsquirrel commented 4 weeks ago

The same option would be useful for rpm-ostree update.

I imagine override-remove-ing the package, and then layering an older one. Maybe extracting the currently used local package and layering it locally?

The use case is continuing updates while some packages are broken. For example to fix SecAdvisories.

jlebon commented 3 weeks ago

In general, any UX-related RFEs solved by dnf are unlikely to be resolved. See the Important box in https://github.com/coreos/rpm-ostree?tab=readme-ov-file#rpm-ostree-a-true-hybrid-imagepackage-system.