Adding or removing software repositories in Fedora
This section describes how to add, enable, or disable a software repository with the DNF application.
Añadiendo repositorios
This section describes how to add software repositories with the dnf
config-manager
command.
Use the following commands as the root
user or under the sudo
utility.
-
Define a new repository by adding a new file with the
.repo
suffix to the/etc/yum.repos.d/
directory. For details about various options to use in the.repo
file, see the f{MAJOROSVER}@fedora:system-administrators-guide:package-management/DNF.adoc#sec-Setting_repository_Options section in the System Administrator’s Guide -
Add the newly created repository.
dnf config-manager --add-repo repository
Replace
repository
with the path to the created.repo
file, for example:dnf config-manager --add-repo /etc/yum.repos.d/fedora_extras.repo
Habilitando repositorios
Esta sección muestra como habilitar un repositorio de software concreto
usando el comando dnf config-manager
.
Procedimiento
-
Para habilitar un repositorio concreto, use el siguiente comando como
root
.# dnf config-manager --set-enabled repository
Reemplace
repository
con la ID única del repositorio, por ejemplo:# dnf config-manager --set-enabled fedora-extras
Disabling repositories
This section shows how to disable a particular software repository by using
the dnf config-manager
command.
Procedimiento
-
To disable a particular repository, use the following command as root:
# dnf config-manager --set-disabled repository
Reemplace
repository
con la ID única del repositorio, por ejemplo:# dnf config-manager --set-disabled fedora-extras