How to exclude a package from CloudLinux dynamic repository?

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • manoaratefy
    Junior Member
    • Jul 2020
    • 3

    #1

    How to exclude a package from CloudLinux dynamic repository?

    Good morning, Is there a way to permanently exclude a package from CloudLinux dynamic repo (cloudlinux-x86_64-server-8) ? I have issue installing nginx from nginx.org due to this and I wish to permanently disable it instead of using "--disablerepo=cloudlinux-x86_64-server-8" on yum commands.
  • Answer selected by bogdan.sh at 06-08-2022, 08:55 AM.
    bogdan.sh
    Administrator
    • Nov 2016
    • 1221

    Hi,

    Please use the priority for nginx repository, e.g. open the /etc/yum.repos.d/nginx.repo file and into the nginx-stable repo section add this:
    Code:
    priority=1
    If nothing is set the default priority for repositories is 99. The repositories with the lowest numerical priority number have the highest priority.

    Comment

    • bogdan.sh
      Administrator
      • Nov 2016
      • 1221

      #2
      Hi,

      Please use the priority for nginx repository, e.g. open the /etc/yum.repos.d/nginx.repo file and into the nginx-stable repo section add this:
      Code:
      priority=1
      If nothing is set the default priority for repositories is 99. The repositories with the lowest numerical priority number have the highest priority.

      Comment

      • manoaratefy
        Junior Member
        • Jul 2020
        • 3

        #3
        Thank you, you saved my week. 😍 BTW, the support wasn't able to provide me this nice workaround.

        Comment

        Working...