![]() 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |