Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: allow reinstallig an "override remove"d (during image building process) package #4554

Open
firefoxlover opened this issue Aug 27, 2023 · 6 comments

Comments

@firefoxlover
Copy link

Currently there is no way to reset the "removed" stage of single apps as far as I understood.

This means when uninstalling an app and wanting to have it back, for example to force-reinstall it, you need to reset your whole system.

rpm-ostree install APP does not work, as does rpm-ostree install --allow-inactive APP

Please add an rpm-ostree reset APP argument possibility to reset a single app.

@kubepy
Copy link

kubepy commented Aug 31, 2023

i noticed this issue too, seems rpm-ostree override remove somepkg in dockefile, it cannot reset or reinstall the pkg again and inactive.

I don't whether it has any workarounds or solutions could help me.

@firefoxlover
Copy link
Author

this is still an issue, especially with custom images like ublue, where some packages are removed and can't be reinstalled.

@kra-mo
Copy link

kra-mo commented Feb 7, 2024

rpm-ostree override reset [PACKAGE]?

@firefoxlover firefoxlover changed the title FR: allow reinstallig an "override remove"d package FR: allow reinstallig an "override remove"d (during image building process) package Feb 9, 2024
@firefoxlover
Copy link
Author

firefoxlover commented Feb 9, 2024

weird. I thought I had tried this one before.

Anyways this does not apply to the specific situation when during image building process a package was removed. For example Fedora ships a base image, this gets consumed by another project which decides to remove a package from the base image. A user then wants to revert such an override, to avoid the need to build too many opinionated images.

~ ❯❯❯ rpm-ostree override reset firefox firefox-langpacks
error: No overrides for package 'firefox'
~ ❯❯❯ rpm-ostree install firefox firefox-langpacks
Inactive requests:
  firefox (already provided by firefox-122.0-5.fc39.x86_64)
  firefox-langpacks (already provided by firefox-langpacks-122.0-5.fc39.x86_64)

the packages are not detected as override-removed so they can't be added back

@firefoxlover
Copy link
Author

firefoxlover commented Mar 11, 2024

Related issue: #4812

So exact steps to reproduce easily:

  • use a distro taking Fedoras images and using for example a Github worker, override removing a package and then building an OCI image from that. i.e. ublue and derivatives
  • try to reset that distro, the package will not be added back
  • try to install that package, it will show as "package already provided" even though it is not installed

@boredsquirrel
Copy link

I have the same issue.

During the process when uBlue takes the Fedora OCI images and override removes packages, then ships the image, then I use the image again and try to add a package during the build, I think the same issue occurs.

Though no error output possible yet. But doing it locally I can reproduce the said errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants