Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, chocolatey, scoop, winget 安装 emacs

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install emacs

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install emacs

MacPorts ports tree · editors/emacs/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add emacs

Alpine Linux edge package indexes · emacs · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install emacs

Debian stable package indexes · emacs · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install emacs

Fedora Rawhide package metadata · emacs · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#emacs

nixpkgs package indexes · emacs · 来源: raw.githubusercontent.com

Arch Linux pacman已验证 · 92%
sudo pacman -S emacs

Arch Linux sync databases · emacs · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install emacs

openSUSE Tumbleweed package metadata · emacs · 来源: download.opensuse.org

Windows

Chocolatey已验证 · 92%
choco install Emacs

Chocolatey community package catalog · Emacs · 来源: community.chocolatey.org

Scoop已验证 · 92%
scoop install extras/emacs

Scoop official bucket manifest trees · bucket/emacs.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id GNU.Emacs -e

Windows Package Manager source index · GNU.Emacs · 来源: cdn.winget.microsoft.com

概览

软件包摘要

GNU Emacs text editor

命令和别名

  • ebrowse
  • emacs
  • emacs-30.2
  • emacsclient
  • etags

历史

项目历史与用法

GNU Emacs is the GNU project's extensible, customizable text editor and Lisp environment. It is both a daily editor and a programmable application platform, shipped by essentially every Unix-like package manager and widely used through terminal, GUI, daemon, and emacsclient workflows.

项目历史

The Emacs lineage began before GNU: the GNU source tree's HISTORY file says EMACS started as macros on top of the TECO editor and was first operational in late 1976. That original idea, an extensible and self-documenting editor, became one of the defining models for programmable development environments.

Work on GNU Emacs began in 1984 as a fresh implementation for GNU and GNU-like systems with a full-featured Lisp at its core. GNU Emacs 13, the initial public release, was announced on Usenet on 1985-03-20, and the project has kept a long stable-release history in the source tree since then.

Over later decades, GNU Emacs accumulated major editing, programming, package, display, and platform features while keeping Emacs Lisp as the extension language. The NEWS files remain the canonical record of user-visible changes, with Emacs 30 adding items such as default native compilation where libgccjit is available, Android port work, and always-available native JSON support.

采用历史

Emacs spread through Unix and free software culture because it was not only an editor but a programmable environment. Its extension model made modes, mail/news clients, shells, version-control interfaces, language tooling, and personal workflows installable or scriptable inside one long-lived process.

Package-manager adoption is unusually broad: GNU Emacs is available through Homebrew, Debian, Ubuntu, Fedora, Arch, Nix, MacPorts, Chocolatey, Scoop, winget, and other systems. That breadth reflects both its age and its continuing role as a baseline developer and writing tool across operating systems.

Modern adoption also depends on package archives and init-file culture. Users typically maintain an init.el or equivalent startup file, install packages, and share configuration snippets; package managers provide the editor binary, while Emacs's own package system and Lisp ecosystem provide much of the user experience.

使用方式

GNU Emacs is commonly launched as emacs for an interactive session, emacsclient for connecting to a server, or as a terminal/GUI editor depending on the build. Users customize startup through files such as ~/.emacs, ~/.emacs.d/init.el, or XDG-style ~/.config/emacs/init.el, with early-init.el available for earlier startup customization.

Common use spans text editing, programming, project navigation, shells, version control, mail, notes, and literate configuration. Its significance is not one workflow but the fact that many workflows can be implemented in Emacs Lisp and loaded into the same editor.

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

GNU Emacs is package-nerd bedrock: it is a large, old, highly configurable package with compile-time options, GUI toolkit choices, native compilation, daemon/client modes, and many downstream variants. Installing Emacs is often the start of another package ecosystem managed through Emacs Lisp packages and user configuration.

For maintainers, Emacs is also a portability test case. It spans terminal and graphical builds, Unix-like systems and Windows, optional libraries, and decades of compatibility expectations. That makes it a recurring package-manager benchmark for patches, bottles, build flags, and upgrade migrations.

时间线

  • 1976: EMACS becomes operational as TECO macros.
  • 1984: Work begins on GNU Emacs as a new implementation for GNU and GNU-like systems.
  • 1985: GNU Emacs 13 is announced as the initial public release.
  • 1997: GNU Emacs 20.1 is released.
  • 2001: GNU Emacs 21.1 is released.
  • 2012: GNU Emacs 24.1 is released.
  • 2018: GNU Emacs 26.1 is released.
  • 2025: Emacs 30 NEWS records Emacs 30.2 as a bug-fix release and Emacs 30.1 user-visible changes.

Related projects

  • GNU Emacs is related to earlier TECO-based Emacs systems, XEmacs, Emacs Lisp package archives, and editor ecosystems such as Vim and modern IDEs. In package-manager data it is also connected to helper executables such as emacsclient, etags, and ebrowse.

安全态势

风险级别:orange

broad file, network, media, or database tool signal. formula declares a Homebrew service.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • broad file, network, media, or database tool signal
  • formula declares a Homebrew service

信号

  • metadata:service
  • text:client

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • formula 元数据声明了服务或守护进程块。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 3 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
~/.emacs.el~/.emacs~/.emacs.d/init.el~/.config/emacs/init.el~/.emacs.d/early-init.el~/.config/emacs/early-init.el

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ebrowsecli全局可执行文件
emacscli全局可执行文件
emacs-30.2cli全局可执行文件
emacsclientcli全局可执行文件
etagscli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本30.2
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.gnu.org/software/emacs/

安装元数据

软件包元数据

软件包键brew:emacs
版本30.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/emacs
主页https://www.gnu.org/software/emacs/
仓库https://git.savannah.gnu.org/cgit/emacs.git
上游文档https://www.gnu.org/software/emacs/documentation.html
许可证GPL-3.0-or-later
源码归档https://ftpmirror.gnu.org/gnu/emacs/emacs-30.2.tar.xz
最后更新2026-06-22T14:03:14-07:00
Pulseupdated
依赖gmp, gnutls, tree-sitter@0.25
构建依赖pkgconf, texinfo
macOS 提供的库libxml2, ncurses
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务declared

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameemacs
Version Scheme0
Revision2
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

emacs 1:30.1+1-6

GNU Emacs editor (metapackage)

https://www.gnu.org/software/emacs/

sudo apt install emacs
  • Section: editors
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

emacs-bin-common 1:30.1+1-6

GNU Emacs editor's shared, architecture dependent files

https://www.gnu.org/software/emacs/

sudo apt install emacs-bin-common
  • Section: editors
  • Architecture: amd64
  • Source Package: emacs
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs-bin-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

emacs-common 1:30.1+1-6

GNU Emacs editor's shared, architecture independent infrastructure

https://www.gnu.org/software/emacs/

sudo apt install emacs-common
  • Section: editors
  • Architecture: all
  • Source Package: emacs
  • 4 依赖
  • 32 提供
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

emacs-el 1:30.1+1-6

GNU Emacs LISP (.el) files

https://www.gnu.org/software/emacs/

sudo apt install emacs-el
  • Section: editors
  • Architecture: all
  • Source Package: emacs
  • 1 依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs-el from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

emacs-gtk 1:30.1+1-6

GNU Emacs editor (with GTK+ GUI support)

https://www.gnu.org/software/emacs/

sudo apt install emacs-gtk
  • Section: editors
  • Architecture: amd64
  • Source Package: emacs
  • 32 依赖
  • 6 提供
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs-gtk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

emacs-lucid 1:30.1+1-6

GNU Emacs editor (with Lucid GUI support)

https://www.gnu.org/software/emacs/

sudo apt install emacs-lucid
  • Section: editors
  • Architecture: amd64
  • Source Package: emacs
  • 32 依赖
  • 6 提供
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs-lucid from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

emacs-nox 1:30.1+1-6

GNU Emacs editor (without GUI support)

https://www.gnu.org/software/emacs/

sudo apt install emacs-nox
  • Section: editors
  • Architecture: amd64
  • Source Package: emacs
  • 19 依赖
  • 6 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs-nox from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

emacs-pgtk 1:30.1+1-6

GNU Emacs editor (with GTK+ Wayland GUI support)

https://www.gnu.org/software/emacs/

sudo apt install emacs-pgtk
  • Section: editors
  • Architecture: amd64
  • Source Package: emacs
  • 32 依赖
  • 6 提供
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Debian stable package indexes · deb.debian.org · Debian stable package indexes: emacs-pgtk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

emacs

nix profile install nixpkgs#emacs
  • normalized package name match
  • 匹配方式:Emacs
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: emacs from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

emacs 1:29.3+1-1ubuntu2

GNU Emacs editor (metapackage)

https://www.gnu.org/software/emacs/

sudo apt install emacs
  • Section: universe/editors
  • Architecture: all
  • 4 依赖
  • normalized package name match
  • 匹配方式:Emacs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: emacs from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

emacs-bin-common 1:29.3+1-1ubuntu2

GNU Emacs editor's shared, architecture dependent files

https://www.gnu.org/software/emacs/

sudo apt install emacs-bin-common
  • Section: universe/editors
  • Architecture: amd64
  • Source Package: emacs
  • 2 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: emacs-bin-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

emacs-common 1:29.3+1-1ubuntu2

GNU Emacs editor's shared, architecture independent infrastructure

https://www.gnu.org/software/emacs/

sudo apt install emacs-common
  • Section: universe/editors
  • Architecture: all
  • Source Package: emacs
  • 6 依赖
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: emacs-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

emacs-el 1:29.3+1-1ubuntu2

GNU Emacs LISP (.el) files

https://www.gnu.org/software/emacs/

sudo apt install emacs-el
  • Section: universe/editors
  • Architecture: all
  • Source Package: emacs
  • 1 依赖
  • normalized package name match
  • 匹配方式:Emacs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: emacs-el from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

emacs-gtk 1:29.3+1-1ubuntu2

GNU Emacs editor (with GTK+ GUI support)

https://www.gnu.org/software/emacs/

sudo apt install emacs-gtk
  • Section: universe/editors
  • Architecture: amd64
  • Source Package: emacs
  • 32 依赖
  • 6 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: emacs-gtk from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

emacs-lucid 1:29.3+1-1ubuntu2

GNU Emacs editor (with Lucid GUI support)

https://www.gnu.org/software/emacs/

sudo apt install emacs-lucid
  • Section: universe/editors
  • Architecture: amd64
  • Source Package: emacs
  • 32 依赖
  • 6 提供
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: emacs-lucid from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

emacs-nox 1:29.3+1-1ubuntu2

GNU Emacs editor (without GUI support)

https://www.gnu.org/software/emacs/

sudo apt install emacs-nox
  • Section: universe/editors
  • Architecture: amd64
  • Source Package: emacs
  • 19 依赖
  • 6 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Emacs
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: emacs-nox from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment