jononomo

jononomo

Does asdf use Homebrew to install packages?

I’m trying to understand in what sense asdf is not a package manager. It seems like I can use it to install and uninstall packages. But lots of people go to great pains to explain that a package manager and a version manager are different things. So does asdf use a package manager behind the scenes? Can I use asdf even if I don’t use Homebrew or any other package manager?

Marked As Solved

Ankhers

Ankhers

Technically yes, but probably not.

There are some things that are just not available when using asdf. I haven’t used a mac or homebrew in a few years. But one thing that I used homebrew for that I couldn’t use asdf for was installing Emacs. Even if asdf offered me an emacs plugin, I wouldn’t use it. I don’t need multiple versions of Emacs on my machine. Similar to something like Postgres (though, I think asdf offers one), redis and other databases. Then there are also things like git, htop, tmux, anki, thunderbird, etc.

Basically, if you do not want/need multiple versions of a given piece of software on your machine, there is no point in using a version manager and you should use a package manager (either that or manually install things and keep everything updated yourself).

Also Liked

Ankhers

Ankhers

asdf does not use homebrew. It is actually just a shell script that allows different “plugins” to be hooked into it. This is how you can manage elixir, erlang, node, ruby, etc all with asdf. I can’t speak to every single plugin, but the erlang asdf plugin will use kerl in order to download and manage erlang versions. The elixir plugin seems to just download builds directly from hex.pm.

LostKobrakai

LostKobrakai

The reason why homebrew is not a version manager is also the reason why asdf cannot use it. Homebrew does only supply one version of each package. Only some packages get tagged with versions mostly for compatibility reasons. asdf on the other hand allows you to install any number of versions of a tool and seamlessly switch between using them.

Where Next?

Popular in Questions Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
polypush135
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
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
mathew4509
I have a list say x = ["23gh", "56kh", "97mh"] I would like to pass each element to Val in each iteration. Say, in iteration 1 -------...
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
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

Other popular topics Top

shahryarjb
Hello, I get Persian date from my client and convert it to normal calendar like this: def jalali_string_to_miladi_english_number(persi...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
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
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
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
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
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
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New

We're in Beta

About us Mission Statement