Bash Index : dnf - DNF, the next-generation replacement for YUM

mail

dnf

enable a DNF repository (i.e. access packages from that repository)
dnf config-manager --enable repositoryId
example :
  1. cat /etc/yum.repos.d/myApplication.repo
    [myAppRepoId]
    name=Repository for myApplication
    baseurl=https://...
    enabled=1
    [other settings...]
  2. dnf config-manager --disable myAppRepoId && cat /etc/yum.repos.d/myApplication.repo
    Updating Subscription Management repositories.
    [myAppRepoId]
    name=Repository for myApplication
    baseurl=https://...
    enabled=0
    [other settings...]
  3. dnf config-manager --enable myAppRepoId && cat /etc/yum.repos.d/myApplication.repo
    Updating Subscription Management repositories.
    [myAppRepoId]
    name=Repository for myApplication
    baseurl=https://...
    enabled=1
    [other settings...]
find which package(s) require somePackage :
dnf repoquery --whatrequires python-unversioned-command
	Updating Subscription Management repositories.
	...
	cyberwatch-agent-0:3.2-0.noarch
	rhel-system-roles-0:1.108.6-0.1.el9.noarch
	rhel-system-roles-0:1.88.9-0.1.el9_5.noarch
	rhel-system-roles-0:1.95.7-0.1.el9_6.noarch
	rhel-system-roles-0:1.96.0-0.1.el9_6.noarch
	texlive-xepersian-9:20200406-25.el9.noarch
	texlive-xepersian-9:20200406-26.el9.noarch
	texlive-xepersian-9:20200406-26.el9_2.noarch