OS: Ubuntu 12.10 (GNU/Linux 3.8.4-x86_64-linode31 x86_64)
$ emacs --version
=> 23.4.1
$ which emacs
/usr/bin/emacs
如何将系统的emacs升级到24.3?
答案1
不需要新的存储库——只需安装emacs24
您想要的包。
从我的 12.10 系统来看:
edd@max:~$ COLUMNS=80 dpkg -l | grep "^ii emacs"
ii emacs-goodies- 35.2ubuntu2 all Miscellaneous add-ons for Emacs
ii emacs23-bin-co 23.4+1-4ubun amd64 The GNU Emacs editor's shared, ar
ii emacs23-common 23.4+1-4ubun all The GNU Emacs editor's shared, ar
ii emacs23-common 23.4+1-1 all GNU Emacs shared, architecture in
ii emacs23-lucid 23.4+1-4ubun amd64 The GNU Emacs editor
ii emacs24 24.1+1-2ubun amd64 GNU Emacs editor (with GTK+ user
ii emacs24-bin-co 24.1+1-2ubun amd64 GNU Emacs editor's shared, archit
ii emacs24-common 24.1+1-2ubun all GNU Emacs editor's shared, archit
ii emacs24-common 24.1+1-1 all GNU Emacs common non-DFSG items,
ii emacsen-common 2.0.3 all Common facilities for all emacsen
edd@max:~$
因此,只需sudo apt-get install emacs24
添加您喜欢的任何附加包即可。这样 emacs23 和 emacs24 就可以共存,emacs23 提供默认设置。(您可以覆盖它,请参阅man dpkg-alternatives
)。
答案2
添加Damien Cassou 的 emacs 快照 PPA
sudo add-apt-repository ppa:cassou/emacs
更新包
sudo apt-get update
安装 emacs 24.3
sudo apt-get install emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot
删除旧的 emacs
sudo apt-get autoremove