

How to Check Repo for Available Package Updates? To remove a repository completely, you must remove its configuration files and update yum cache. To disable or remove repos, the yum-config-manager that belongs to yum-utils tools is used. Yum update -disablerepo "*" -enablerepo=mariadb For instance, to update packages only from MariaDB repository, run the command: You can temporarily disable all repositories you do not need. In this example, we have disabled EPEL and updated installed packages. If you do not want to use a repository only for the current package update/installation command, you can disable it in the yum command, for example: In order to disable one of the installed repositories, it is enough to specify enabled=0 in its configuration file.Īfter that remi-php73 repo won’t be used when you install or update packages. Gpgcheck=1 How to Disable a Repository in CentOS? Let’s add the MariaDB repo.Īdd the data provided by MariaDB package developer to it:

To do it, create a repository configuration file in /etc//. For example, I will have PHP 7.3 installed on my server, so I have enabled the corresponding repo (I have specified enabled=1 in remi-php73.repo): You must enable the PHP version you need via the config file. The smallest repo file may look like this: įor example, after you have install the REMI repository, some Remi (remi-*.repo) configuration files will appear in the repository directory.Īs you can see, Remi has a separate configuration file for each PHP version.

mirrorlist – the list of repository mirrors.includepkgs - the list of included packages.exclude - the list of excluded packages.gpgcheck – whether to perform a GPG check (1 - the check is on).async – whether to use parallel package downloading (auto/on/off).enabled – whether this repo must be used: 1 - the repo is enabled, 0 - the repo is disabled.baseurl - the link to a repository (it may be ftp://address, or file://address for a local repo).A typical config file contains the following parameters: Yum repo-pkgs epel list Repository Configuration Files (*.repo)Īll repository configuration files are located in /etc// and have the *.repo extension.
