Announcement

Collapse
No announcement yet.

How to exclude a package from CloudLinux dynamic repository?

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

    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


    • #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


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

        Comment

        Working...
        X