oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.89k stars 2.56k forks source link

Install bun with a package manager on Linux #5671

Closed axeld-galadrim closed 8 months ago

axeld-galadrim commented 9 months ago

What is the problem this feature would solve?

The preferred way to install bun for Linux is actually by using cURL. Which works for sure, but I don't think that it should be the only way to install it on Linux. Because if you want to use a new version of it, you need to remove and re fetch it every time manually. Which is just a mess compared to using a Package Manager. Linux being somewhat used by people who program and used by the majority of servers in the world, it just makes sense that it should be one of the first target of bun. But currently, there is no official support for any package manager (apt, pacman, portrage, rpm, xbps, apk, nix). Sure, you have "Homebrew", but I don't think that it's very popular in the linux community, and needing to install a package manager just for a single program doesn't seem optimized.

What is the feature you are proposing to solve the problem?

I think that bun should create some official packages in popular package manager, and show them as a way to install bun in https://bun.sh/docs/installation. Currently, there are already 3 ways to install bun in the AUR, it's somewhat a mess. I think that it would be a good thing for bun to allow people to install bun using a package manager.

What alternatives have you considered?

No response

psy0rz commented 9 months ago

i think that they WANT to have an official package for all the major distro's, but thats a lot of work. So thats why they have this as a stopgap solution that just works for now i think.

axeld-galadrim commented 9 months ago

i think that they WANT to have an official package for all the major distro's, but thats a lot of work. So thats why they have this as a stopgap solution that just works for now i think.

Having an "official" package in the AUR isn't hard. And if it's the case, maybe they should mention it somewhere ?

gtrabanco commented 9 months ago

They tried for Brew but they required to compile in the client instead of install with binaries and there are some imposible requirements.

Don't know about others.

You can install with brew on linux by using oven tap. You can also use proto and npm.

--

axeld-galadrim commented 9 months ago

You can install with brew on linux by using oven tap

Already mentioned it. Not a suitable way to do that if you don't have brew installed. Which isn't the case for the huge majority of devices running Linux.

You can also use proto and npm.

That's not the point of this issue.

Most of the package managers (not portrage) just download and install binaries. So even if you can't compile it on local (which is a huge problem in itself if it's the case) it won't be a problem for most of the package managers.

gtrabanco commented 9 months ago

Yes, I understand your point I agree but keep in mind that other package managers could have similar requirements anyway it deserves a try. Sure Bun team always welcome a help doing that.


Related issues just to keep tracking and make easier the triage they want to do this week:

axeld-galadrim commented 9 months ago

The thing is that, already many people created some packages for bun in the AUR for example: bunjs-bin, bun-bin and bun. The problem is that there are not official. So people can just stop maintain them (like for bun-bin). It's why just letting people create packages that may be unmaintained and that bun hasn't control of, isn't a fantastic idea. So, what do you need as help ?

axeld-galadrim commented 9 months ago

What can people do to help with that ? Just to mention eza, it's a new project, and it's already on 6 different packages managers for linux, and they are working to add another one.

gtrabanco commented 9 months ago

That question should be solved by Core Team =)

Electroid commented 8 months ago

Duplicate of #862