Score:0

dnf list available updates for locked packages

it flag

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
Score:0
cn flag

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.

hendrik_nl avatar
it flag
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.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.