Handle same package installed from multiple distros

,

Hey there,

I am using Fedora on a Tuxedo Infinity Flex.
To use the tablet mode I need to have a package called iio-sensor-proxy. There seems to be a version that dnf just finds and installs but I need a specific version from the vendors own repositories.

I am currently in the situation were I have both versions installed but presumably the wrong one gets used (at least tablet mode does not work properly).

dnf repolist
gives

repo id repo name
copr:copr.fedorainfracloud.org:phracek:PyCharm Copr repo for PyCharm owned by phracek
fedora Fedora 42 - x86_64
fedora-cisco-openh264 Fedora 42 openh264 (From Cisco) - x86_64
google-chrome google-chrome
rpmfusion-nonfree-nvidia-driver RPM Fusion for Fedora 42 - Nonfree - NVIDI
rpmfusion-nonfree-steam RPM Fusion for Fedora 42 - Nonfree - Steam
tuxedo TUXEDO
updates Fedora 42 - x86_64 - Updates

dnf list --installed | grep iio-sensor
gives

iio-sensor-proxy.x86_64 3.8-1.fc42
iio-sensor-proxy-ipp-selinux.noarch 1.0.0-1 tuxedo

sudo dnf reinstall --repo=tuxedo iio-sensor-proxy
gives

Aktualisiere und lade Paketquellen:
Paketquellen geladen.
Auflösen der Transaktion fehlgeschlagen:
Installierte Pakete fĂŒr Argument ‘iio-sensor-proxy’ sind in den Repositories nicht in derselben Version verfĂŒgbar. VerfĂŒgbare Versionen: iio-sensor-proxy-3.5-100tux0.x86_64, Neuinstallation nicht möglich.

sudo dnf remove iio-sensor-proxy
gives

Auflösen der Transaktion fehlgeschlagen:
Problem: installiertes Paket gnome-settings-daemon-48.1-1.fc42.x86_64 benötigt iio-sensor-proxy, aber keiner der Anbieter kann installiert werden

  • installiertes Paket gnome-shell-48.4-1.fc42.x86_64 benötigt gnome-settings-daemon(x86-64) >= 3.37.1, aber keiner der Anbieter kann installiert werden
  • widersprĂŒchliche Anforderungen
  • Problem mit installiertem Paket

Sorry its a german system. Essentially I cannot remove or reinstall the package.
The vendor support support now suggests that I could use rpm –erase to bypass the dependency checks but I am not sure if that is a good idea.

sudo dnf config-manager setopt tuxedo.priority=90
sudo dnf distro-sync

Then update only using the CLI until the GUI can properly support DNF settings.

2 Likes

Dosn’t matter, you can change the language temporarily for a command or terminal session:
either set LANG in front of the command or export LANG

my system is configured to

$ echo $LANG
en_US.UTF-8

request output in German

$ LANG=de_DE.UTF-8 dnf repoquery iio-sensor-proxy
Aktualisiere und lade Paketquellen:
Paketquellen geladen.
iio-sensor-proxy-0:3.5-6.fc42.x86_64
iio-sensor-proxy-0:3.8-1.fc42.x86_64

or

$ export LANG=de_DE.UTF-8
$ dnf repoquery iio-sensor-proxy
Aktualisiere und lade Paketquellen:
Paketquellen geladen.
iio-sensor-proxy-0:3.5-6.fc42.x86_64
iio-sensor-proxy-0:3.8-1.fc42.x86_64

you can also define LANG=C to get English output.

1 Like

That worked. Thanks. I will let the vendor now so they can add it to their FAQ if they want.

1 Like

ah nice trick for these situations. Ty!