rabbitmq / discussions

Please use RabbitMQ mailing list for questions. Issues that are questions, discussions or lack details necessary to investigate them are moved to this repository.
3 stars 4 forks source link

How to pin erlang version on Ubuntu? #180

Closed rjonala closed 2 years ago

rjonala commented 3 years ago

I want to pin erlang version on Ubuntu. I have tried what's mentioned in the documentation, https://www.rabbitmq.com/install-debian.html#apt-pinning but it didn't work

/etc/apt/preferences.d/erlang

Package: erlang*
Pin: version 1:23.3
Pin-Priority: 1000

When I ran sudo apt-cache policy erlang, it gave me

erlang:
  Installed: (none)
  Candidate: 1:24.0.5-1rmq1ppa1~ubuntu18.04.1
  Version table:
     1:24.0.5-1rmq1ppa1~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic/main amd64 Packages
        500 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic/main i386 Packages
     1:23.3.4-1rmq1ppa1~ubuntu18.04.1 500
        500 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic/main amd64 Packages
        500 http://ppa.launchpad.net/rabbitmq/rabbitmq-erlang/ubuntu bionic/main i386 Packages
     1:22.0.7+dfsg-1build1~ubuntu18.04.1 100
        100 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages
        100 http://us.archive.ubuntu.com/ubuntu bionic-backports/universe i386 Packages
     1:20.2.2+dfsg-1ubuntu2 500
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu bionic/universe i386 Packages

so, I have tried following as well which didn't work either

/etc/apt/preferences.d/erlang

Package: erlang*
Pin: version 1:23.3.1-1
Pin-Priority: 1000

Please let me know the correct content to pin erlang version. Thank you :)

rjonala commented 3 years ago

Hello, any help on this please?

binarin commented 3 years ago

It appears that Cloudsmith and Launchpad repositories provide a different set of packages. You can try switching to Cloudsmith version of that guide, there you should see all the versions available - including the one that interests you.

rjonala commented 3 years ago

Hi @binarin are you recommending to use Launchpad for RMQ server and Cloudsmith for erlang packages?

michaelklishin commented 2 years ago

Both services should have identical (Debian) sets of Erlang 24.x packages.