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.
13 lines
421 B
Text
13 lines
421 B
Text
FROM git.uncontrol.me/ver4a/onc-kde:main
|
|
|
|
# Install nvidia drivers
|
|
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
|
|
|
|
# Remove rpm metadata cache
|
|
RUN rpm-ostree cleanup --repomd
|
|
|
|
# https://github.com/ostreedev/ostree-rs-ext/issues/159
|
|
RUN ostree container commit
|