TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Why does Homebrew reinvent the packaging wheel? It has issues

3 点作者 srevenant将近 2 年前
First, I love what Homebrew has done to help me out, and I really appreciate all the effort the contributors and maintainers put into projects like it.<p>But, it&#x27;s really kindof a PITA, and I can&#x27;t help but wonder, why doesn&#x27;t it just re-use an existing package manager? Nix comes to mind, bit it is learning curve... and design is so wildly different maybe not. Yet, one could just use a linux package manager. They literally already cover all of these things. Port over Yum&#x2F;Dnf, or Apt. Any of these would help!<p>I found this thread a couple years ago which is semi-related. https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=29079096<p>Part of my gripes is Homebrew works fine for the first few things you want to install, but over time, it just falls apart. I just spent HOURS trying to resuscitate my packages because of dependency hell and it didn&#x27;t clean things up right when deleting things and so on and so on.<p>Plus, I&#x27;m now left with the fact it upgraded a package and I needed the older version, and as best I can tell I can&#x27;t downgrade it! (fwiw: elixir v1.15 is what I ended up with, but I must have elixir v1.14 for now; yet I can&#x27;t find any way to downgrade).<p>And it&#x27;s SLOW to run by default—I see you can configure something to be faster, but why isn&#x27;t that just the norm?<p>Regardless, these problems are already solved by other much more large-scale and mature package managers! I&#x27;d almost give my left {insert body part} if somebody would just use Yum&#x2F;DNF on a macos packaging ecosystem.

2 条评论

dv_dt将近 2 年前
Short answer: apt, yum, etc have aspects of tight integration with the distribution that make it a little more difficult (not impossible) to be a &quot;sidecar&quot; package manager like homebrew.<p>Does &quot;brew install elixir@1.14&quot; work for you? Homebrew has its problems, one of them is something like calling out versions doesn&#x27;t always work. I use brew for packages where I generally only want the latest versions, but for finer control of multiple versions, I usually hand those packages over to asdf.<p>And for apt,yum etc, if you want bleeding edge releases, it&#x27;s usually more lag, or repackaging work than the &quot;sidecar&quot; package managers.
评论 #37075172 未加载
tlb将近 2 年前
The immediate reason is that Homebrew predates the other package managers you mention. It goes back to 2009.
评论 #37066573 未加载