#apt packaging for deno?

10 messages · Page 1 of 1 (latest)

timber ice
#

I see on the installation guide https://docs.deno.com/runtime/manual/getting_started/installation there are instructions to install deno on linux using nix, however, apt is missing. There is of course an install script which has a oneliner via curl ... | sh however I'd prefer to simply apt install deno. If anybody else has worked on this or is interested in it, let me know.

Deno works on macOS, Linux, and Windows. Deno is a single binary executable. It

surreal wave
#

deno is such a new and rapidly evolving thing, that any system package that goes through the bureaucracy to be accessible via official apt channels would be woefully out of date. I don't know if there are ways to speed that up, but things at apt tend to be like... a year behind in versions.

#

^ that said I would also love to have up to date deno in apt. just doubting it's possible

timber ice
fleet path
#

how can we add it to rpm fusion or fedora dnf repos?
I would love to add and update deno with dnf

How can I contribute?

stark gulch
elder sparrow
surreal wave
# elder sparrow Frankly why bother? Install via curl or wget is pretty fast and simple, also it ...

Kinda agree, but apt does have potential, or at least theoretical benefits. Some that come to mind:

  • it's the standard, and first way how to find and install software in debian based distros. you can install node that way....
  • many people have apt lists for semi-automated install of all software needed for system setups
  • it's in theory a good security practice to trust only one software source
  • it could install prerequisites like unzip which deno installer needs and is not always pre-installed
  • it could add deno to PATH
  • it could auto set this annoying command that now needs to be run every install AND update if you want to run any kind of http server (pretty common use case I would think): sudo setcap CAP_NET_BIND_SERVICE=+eip ~/.deno/bin/deno
  • actual automatic update notifications/updates (if somehow a current version can actually be updated to apt fast).
elder sparrow
surreal wave
# elder sparrow And what are the step required to add to the apt repository?

I'm not that familiar with the process. I believe for official channels it may be quite slow/bureaucratic. And there are ways to have unofficial channels/repos (ppa? Maybe some newer method also) , but I think they are generally discouraged, and users would have to manually add the repo then to their apt config. I do install mongodb through some unofficial repo, it works but isn't great.