Saturday, May 23, 2020

How to skip packages when updating Arch

I tried to update my Arch Linux installation today, but got an error message when it tried to install Java 14.

error: failed to prepare transaction (could not satisfy dependencies)
:: installing jre-openjdk (14.0.1.u7-1) breaks dependency 'java-runtime-openjdk=13' required by java-openjfx


While I do a fair amount of Java development, I'm not ready to switch to Java 14 yet, so I don't really need it to be installed. The way to avoid installing Java 14 with a system update is to do this:

sudo pacman -Syu --ignore=jre-openjdk,jre14-openjdk,jdk-openjdk,openjdk-doc,jre-openjdk-headless

It took me a couple of tries to get all the packages listed correctly, but this does it.

No comments: