Assign the highest priority to all packages in the local APT repository

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Won't Fix
    • None
    • Component/s: Installation/Update
    • None

      Problem Definition

      Manging packages via Puppet in HipChat Server could be conflicting with the way Chef does it. For example, Puppet could be trying to enforce a policy of 'latest' for given package while Chef wants an older version from the local repository.

      Suggested Solution

      Tell APT that anything in the local repo has priority over anything else, APT will even downgrade to that version if a newer is available.
      All that needs to be done is adding the lines below to /etc/apt/preferences:

      Package: *
      Pin: origin ""
      Pin-Priority: 1001
      

      From https://wiki.debian.org/AptPreferences:

      Note that a priority above 1000 will allow even downgrades no matter the version of the prioritary package. This means that you can use priority 1001 for a stable source if you want to downgrade to the stable versions of the packages you have installed (let's say from testing) on the system.

      More details can be found in: http://askubuntu.com/questions/135339/assign-highest-priority-to-my-local-repository

      Workaround

      None, the package has to be downgraded after Puppet upgrades it.

            Assignee:
            Unassigned
            Reporter:
            Arbi Dridi
            Archiver:
            Michael Andreacchio

              Created:
              Updated:
              Resolved:
              Archived: