jononomo

jononomo

How can I use homebrew to downgrade my local elixir from 1.5.0 to 1.4.4?

Unfortunately I upgraded elixir to 1.5.0 before realizing that I can’t easily get a Dockerfile for 1.5.0. How can I downgrade my homebrew installation of elixir to 1.4.4?

Thanks.

Most Liked

Tuxified

Tuxified

Just for completeness sake: you can ‘go back’ if you still have the old version installed. The homebrew command for this is brew switch <package> <version>, so in your case brew switch elixir 1.4.4. I also agree with previous comments, asdf is a nice version manager :smiley:

tme_317

tme_317

Hi @jononomo,

I’m not sure about Docker and I know homebrew supports “downgrading” to older versions of installed packages globally but I would highly recommend using a version manager such as asdf (https://github.com/asdf-vm/asdf ) instead. This allows you to have multiple copies of erlang, elixir, and nodejs (among many other languages) installed simultaneously on your Mac. You can then switch between those versions globally and/or on a per-project basis using a simple .tool-versions file.

This makes it a breeze to upgrade or test Elixir 1.5 and Erlang/OTP 20.0 but still use the older known working versions for all of your existing projects and be able to switch between the versions with ease.

mtarnovan

mtarnovan

Kiex is also worth mentioning.

romenigld

romenigld

Hello guys I already have installed elixir with homebrew.
But for learn and I want to change the version of elixir and so I think to manage this I needed to install the asdf manager. But I already have installed elixir with homebrew.
So I just see this Post and I notice it’s possible to switch with homebrew.
So for instal or downgrade another versions of elixir. What I need to do with homebrew?
It’s better use this asdf manager?

jononomo

jononomo

Thanks for a great tip, @tme_317 !

Where Next?

Popular in Questions Top

New
quazar
How to set Jason to encode all fields in ecto schema, I don’t care about security and implementing only is taking long list of attributes...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set? Thanks.
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
sabri
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size? Thanks
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

Other popular topics Top

JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
johnnyicon
Hi all, I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I'm trying to use Postg...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement