1
0
Fork 0

Transition nvidia layer completely to dnf5
Some checks failed
/ build-gnome (push) Waiting to run
/ build-kde (push) Has been cancelled

It turns out that "rpm-ostree install" marks all packages as user
installed, therefore it's impossible to distinguish manually installed packages
from their dependencies and "dnf5 autoremove" doesn't work. Moving to
dnf5 resolves this.
This commit is contained in:
ver4a 2024-11-14 13:03:33 +01:00
parent 8806cf94c4
commit 36fc168105
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
FROM git.uncontrol.me/ver4a/onc-gnome:main
# Install nvidia drivers
RUN rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda && \
RUN dnf5 -y install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda && \
akmods --force --kernels $(rpm -qa kernel | sed 's/kernel-//g') && \
rpm -e akmod-nvidia && \
dnf5 -y autoremove

View file

@ -1,7 +1,7 @@
FROM git.uncontrol.me/ver4a/onc-kde:main
# Install nvidia drivers
RUN rpm-ostree install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda && \
RUN dnf5 -y install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda && \
akmods --force --kernels $(rpm -qa kernel | sed 's/kernel-//g') && \
rpm -e akmod-nvidia && \
dnf5 -y autoremove