在Ubuntu中安装emacs简单的策略是直接运行:
sudo apt install emacs
debian库安装的是emacs26.3。
gaowei@Spiritme:/mnt/c/Users/Gaowei$ apt show emacs
Package: emacs
Version: 1:26.3+1-1ubuntu2
Priority: optional
Section: universe/editors
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Rob Browning
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 77.8 kB
Depends: emacs-gtk (>= 1:26.3) | emacs-lucid (>= 1:26.3) | emacs-nox (>= 1:26.3)
Homepage: https://www.gnu.org/software/emacs/
Download-Size: 12.7 kB
APT-Sources: http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages
Description: GNU Emacs editor (metapackage)
GNU Emacs is the extensible self-documenting text editor.
This is a metapackage that will always depend on the latest
recommended Emacs variant (currently emacs-gtk).
然而,此方法有诸多问题,不如不支持dynamic-modules等。
最简单省心的方法是添加库:
sudo add-apt-repository ppa:kelleyk/emacs
之后运行:
sudo apt update && sudo apt upgrade -y
我们查看这个版本:
gaowei@Spiritme:/mnt/c/Users/Gaowei$ apt show emacs26
Package: emacs26
Version: 26.3~1.git96dd019-kk1+20.04
Priority: optional
Section: editors
Maintainer: Robert Bruce Park
Installed-Size: 44.7 MB
Provides: editor, emacsen, info-browser, mail-reader, news-reader
Depends: emacs26-common, libasound2 (>= 1.0.16), libc6 (>= 2.29), libcairo2 (>= 1.10.0), libdbus-1-3 (>= 1.9.14), libfontconfig1 (>= 2.12.6), libfreetype6 (>= 2.2.1), libgdk-pixbuf2.0-0 (>= 2.22.0), libgif7 (>= 5.1), libglib2.0-0 (>= 2.37.3), libgnutls30 (>= 3.6.11), libgpm2 (>= 1.20.7), libgtk-3-0 (>= 3.21.4), libice6 (>= 1:1.0.0), libjavascriptcoregtk-4.0-18, libjpeg8 (>= 8c), liblcms2-2 (>= 2.2+git20110628), libm17n-0 (>= 1.6.1), libmagickcore-6.q16-6 (>= 8:6.9.10.2), libmagickwand-6.q16-6 (>= 8:6.9.10.2), libotf0 (>= 0.9.11), libpango-1.0-0 (>= 1.18.0), libpng16-16 (>= 1.6.2-1), librsvg2-2 (>= 2.14.4), libselinux1 (>= 1.32), libsm6, libsystemd0, libtiff5 (>= 4.0.3), libtinfo6 (>= 6), libwebkit2gtk-4.0-37 (>= 2.15.1), libx11-6, libx11-xcb1, libxcb1, libxext6, libxfixes3 (>= 1:4.0.1), libxft2 (>> 2.1.1), libxml2 (>= 2.7.4), libxpm4, libxrender1, zlib1g (>= 1:1.1.4)
Conflicts: emacs26-nox
Replaces: emacs26-nox
Download-Size: 3954 kB
APT-Sources: http://ppa.launchpad.net/kelleyk/emacs/ubuntu focal/main amd64 Packages
Description: GNU Emacs editor (with GTK+ user interface)
GNU Emacs is the extensible self-documenting text editor.
This package contains a version of Emacs with a GTK+ user interface.
之后运行安装:
sudo apt install emacs26
注意后缀有26,不能省略,否则安装的就是原版的emacs26.
页面更新:2024-05-28
本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828
© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号