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...]