0

With yum versionlock status I can get a list of available updates that are currently blocked by versionlock. With dnf this command doesn't seem to work. I cannot find a dnf command that does the same. Is there perhaps another way?

Since dnf does not have a command like dnf versionlock status, I have created a small script to do sort of the same.

#!/usr/bin/env bash

LOCKED_LIST=( $(dnf -q versionlock) )

for LOCKED_ROW in "${LOCKED_LIST[@]}"; do
    dnf -q list available "${LOCKED_ROW%%-*}.x86_64" 2>/dev/null
    done

1 Answers1

0

According to the documentation here and here. It looks like you need to install python3-dnf-plugin-versionlock plugin in order to use it. But I could be misinterpreting this.

More info about the plugin can be found here.

FRALEWHALE
  • 98
  • 1
  • 1
  • 7
  • I forgot to mention it is a CentOS 7 machine, and I installed the package yum install yum-plugin-versionlock. The locking works well, but I still want to be notified about updates for locked packages. – hendrik_nl Jan 31 '23 at 09:58