Adicionando ou removendo repositórios de software no Fedora
Esta seção descreve como adicionar, habilitar ou desabilitar um repositório de software com o aplicativo DNF.
Adding repositories
Esta seção descreve como adicionar, habilitar ou desabilitar com o comando dnf config-manager.
To add a new repository, use one of the following methods.
-
Define a new repository by creating a new file with the
.reposuffix in a temporary location, such as the/tmpdirectory. -
Add the repository with
addrepo, where repository is the file path:$ sudo dnf config-manager addrepo --from-repofile=_repository_For example:
$ sudo dnf config-manager addrepo --from-repofile=/tmp/fedora_extras.repo
Enabling repositories
Esta seção descreve como adicionar, habilitar ou desabilitar um repositório particular usado pelo comando dnf config-manager.
-
To enable a particular repository, run the following command:
$ sudo dnf config-manager setopt _repository_.enabled=1Where repository is the unique repository ID, for example:
$ sudo dnf config-manager setopt fedora-extras.enabled=1
Disabling repositories
This section shows how to disable a particular software repository by using the dnf config-manager command.
-
To disable a particular repository, run the following command:
$ sudo dnf config-manager setopt _repository_.enabled=0Where repository is the unique repository ID, for example:
$ sudo dnf config-manager setopt fedora-extras.enabled=0
Removing repositories
This section shows how to remove a repository (or .repo file).
|
If you know the ID of a repository, but you are not sure what |
-
To remove a repository, run the following command:
$ sudo rm /etc/yum.repos.d/_file_name_.repoWhere file_name is the name of the
.repofile.
Want to help? Learn how to contribute to Fedora Docs ›