# 使用 Homebrew, apk, chocolatey, MacPorts, Nix, pacman, zypper, scoop, winget, apt 安装 deno

查看 deno 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:deno
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install deno
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install deno
```

  证据: MacPorts ports tree: devel/deno/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add deno
```

  证据: Alpine Linux edge package indexes: deno from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#deno
```

  证据: nixpkgs package indexes: pkgs/by-name/de/deno/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S deno
```

  证据: Arch Linux sync databases: deno from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install deno
```

  证据: openSUSE Tumbleweed package metadata: deno from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install dx
```

  证据: Debian stable package indexes: dx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

### Windows

- Chocolatey (92%):

```sh
choco install deno
```

  证据: Chocolatey community package catalog: deno from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','deezer'

- Scoop (92%):

```sh
scoop install main/deno
```

  证据: Scoop official bucket manifest trees: bucket/deno.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id DenoLand.Deno -e
```

  证据: Windows Package Manager source index: DenoLand.Deno from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:deno
- **软件包管理器:** Homebrew
- **版本:** 2.9.4
- **来源摘要:** Secure runtime for JavaScript and TypeScript
- **主页:** <https://deno.com/>
- **仓库:** <https://github.com/denoland/deno>
- **最后更新:** 2026-07-23T18:45:32Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- deno (别名)
- dx (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.9.4
## 项目历史与用法

Deno is a modern JavaScript, TypeScript, and WebAssembly runtime with secure defaults, built-in tooling, and a single deno executable. It began as a rethink of server-side JavaScript after Node.js and later expanded toward Node and npm compatibility.

### 项目历史

The Deno repository was created in May 2018. The official Deno 1.0 announcement framed the project as a new runtime for JavaScript and TypeScript outside the browser, influenced by lessons from Node.js and designed around browser-compatible APIs, explicit permissions, first-class TypeScript, promises, Rust, and V8.

Deno 1.0 shipped in May 2020 as the stable CLI. The runtime deliberately bundled common developer tooling so users could run, test, format, lint, and document code without assembling a separate Node-style toolchain.

Deno 2, announced in October 2024, marked a shift from rejecting much of the Node ecosystem to supporting Node.js and npm compatibility. The Deno team described that release as combining Deno's original simplicity and security goals with package.json, node_modules, workspaces, npm specifiers, and private npm registries.

### 采用历史

Early Deno adoption centered on developers who wanted browser-like module loading, TypeScript without a separate compiler setup, and a permission model for command-line scripts. Its official docs still present the tool as a secure-by-default runtime with a built-in formatter, linter, test runner, benchmarker, and package workflow.

After Deno 2, adoption broadened toward existing Node projects because Deno could run in repositories with package.json and node_modules while keeping Deno's own tooling and permission model. The release feed shows continued active releases, including Deno 2.9.0 in June 2026.

### 使用方式

Deno is used as a CLI runtime for scripts, services, tests, local tools, web servers, and TypeScript projects. The getting-started docs show deno init creating a project with deno.json, main.ts, and tests, then running TypeScript directly without a separate build step.

Package workflows can use URL imports, JSR packages, npm: specifiers, deno.json, or package.json depending on the project. Deno 2 also supports private npm registry configuration through .npmrc, which aligns it with enterprise Node package workflows.

### 为什么软件包爱好者会关心

Deno is package-nerd catnip because it challenges the usual JavaScript runtime/package-manager split. One executable brings together runtime, installer, formatter, linter, test runner, task runner, dependency management, and docs.

Its history also tracks a major ecosystem lesson: clean-slate runtimes are attractive, but compatibility wins adoption. Deno 2's Node and npm support made the package story less ideologically pure and much more operationally useful.

### 时间线

- 2018: The denoland/deno repository is created on GitHub.
- 2020: Deno 1.0 is announced as the first stable CLI release.
- 2024: Deno 2 is announced with Node.js and npm compatibility.
- 2026: Deno 2.9.0 is published on GitHub releases.

### Related projects

- Node.js is the historical reference point and compatibility target for Deno 2.
- V8 and Rust are core implementation technologies discussed in the Deno 1.0 announcement.
- JSR is Deno's TypeScript-first package registry companion.
- Fresh and Deno Deploy are related Deno ecosystem projects from Deno Land.

### 来源

- <https://github.com/denoland/deno>
- <https://api.github.com/repos/denoland/deno>
- <https://api.github.com/repos/denoland/deno/releases>
- <https://deno.com/blog/v1>
- <https://deno.com/blog/v2.0>
- <https://docs.deno.com/runtime/>


## 安全说明

doc example: JavaScript runtime.

- **Geiger 风险:** yellow / 高
- doc example: JavaScript runtime


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: deno.json, deno.jsonc, package.json
## 其他软件包管理器记录

- Nix - deno: normalized package name match | nixpkgs package indexes: pkgs/by-name/de/deno/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - deno - 2.7.4-r2: normalized package name match | Alpine Linux edge package indexes: deno from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A modern runtime for JavaScript and TypeScript | https://deno.land/
- apk - deno-bash-completion - 2.7.4-r2: normalized package name match | Alpine Linux edge package indexes: deno-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for deno | https://deno.land/
- apk - deno-fish-completion - 2.7.4-r2: normalized package name match | Alpine Linux edge package indexes: deno-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for deno | https://deno.land/
- apk - deno-zsh-completion - 2.7.4-r2: normalized package name match | Alpine Linux edge package indexes: deno-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for deno | https://deno.land/
- pacman - deno - 2.9.4-1: normalized package name match | Arch Linux sync databases: deno from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A secure runtime for JavaScript and TypeScript | https://deno.com
- zypper - deno - 2.9.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: deno from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A secure JavaScript and TypeScript runtime | https://github.com/denoland/deno
- zypper - deno-bash-completion - 2.9.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: deno-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Bash Completion for deno | https://github.com/denoland/deno
- zypper - deno-fish-completion - 2.9.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: deno-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Fish Completion for deno | https://github.com/denoland/deno
- zypper - deno-zsh-completion - 2.9.0-1.2: normalized package name match | openSUSE Tumbleweed package metadata: deno-zsh-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Zsh Completion for deno | https://github.com/denoland/deno
- MacPorts - deno: normalized package name match | MacPorts ports tree: devel/deno/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - deno: normalized package name match | Chocolatey community package catalog: deno from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','deezer'
- Scoop - main/deno: normalized package name match | Scoop official bucket manifest trees: bucket/deno.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - DenoLand.Deno: normalized package name match | Windows Package Manager source index: DenoLand.Deno from https://cdn.winget.microsoft.com/cache/source.msix
- Debian apt - dx - 1:4.4.4-18+b1: installed executable or alias match | Debian stable package indexes: dx from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenDX (IBM Visualization Data Explorer) - main package | https://web.archive.org/web/20080812051658/http://www.opendx.org/
- Debian apt - dx-doc - 1:4.4.4-18: installed executable or alias match | Debian stable package indexes: dx-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | OpenDX (IBM Visualization Data Explorer) - documentation | https://web.archive.org/web/20080812051658/http://www.opendx.org/


## Combined YAML source

View the package source record on GitHub. [combined/deno.yml](https://github.com/mxcl/pkgdb/blob/main/combined/deno.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
