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

Fallback to update when reinstalling a missing package #103

Open
kiwixz opened this issue Mar 4, 2021 · 1 comment
Open

Fallback to update when reinstalling a missing package #103

kiwixz opened this issue Mar 4, 2021 · 1 comment
Labels

Comments

@kiwixz
Copy link

kiwixz commented Mar 4, 2021

microdnf reinstall should have an option to allow an update if the package is missing.

This is needed when trying to fix the stripped-out tzdata in the fedora-minimal docker image.
microdnf reinstall tzdata currently errors out:

bash-5.0# microdnf reinstall tzdata
Downloading metadata...
Downloading metadata...
Downloading metadata...
Installed package tzdata-2020f-1.fc33.noarch not available.
error: The transaction was empty

Workaround: rpm --e --nodeps tzdata && microdnf install tzdata

@dmach dmach added the dnf5 label Mar 8, 2021
@dmach
Copy link
Contributor

dmach commented Mar 8, 2021

We're not going to implement it in the current code base, but we'll include this in our future plans.
As a workaround, couldn't you run something like microdnf reinstall tzdata || microdnf update tzdata ?

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

No branches or pull requests

2 participants