Hi, quick question.
I want to remove a single package. Currently I do it so, that I do
rpm-ostree statuswrite down all overlays and removals, and remove the package through
rpm-ostree reset && rpm-ostree override remove a b c --install d --install f
Does the last syntax work? Its kinda hard to combine an overwrite and an uninstall in a single command, really important for efficiency though. - Yes that syntax works
Is there a better way? This is horrible, especially with locally sourced RPMs
Edit: found the solutions:
# remove layered package
rpm-ostree uninstall PACKAGE1 PACKAGE2
# remove package from image
rpm-ostree override remove PACKAGE1 PACKAGE2
# replace package
rpm-ostree override replace RPM-FILE || rpm-ostree override remove PACKAGE --install PACKAGE2
#install a Package and remove a layered package and in same command
rpm-ostree install PACKAGE1 PACKAGE2 --remove PACKAGE3 # does this work?
# remove layered packages and install multiple ones
rpm-ostree uninstall PACKAGE1 PACKAGE2 --install PACKAGE3 --install PACKAGE4
# remove a system package and install multiple ones
rpm-pstree override remove PACKAGE1 PACKAGE2 --install PACKAGE3 --install PACKAGE4
now the question is, how do I update, remove and install at the same time? Afaik you can only add one single option to rpm-ostree update like
rpm-ostree update --install A
rpm-ostree update --remove B
also, it seems
rpm-ostree update --override remove A
is not possible.