Centos – How to install emacs using YUM without X11 libraries

centosemacspackage-managementsoftware installationyum

I have installed a minimal installation of CentOS 6.3 inside a VirtualBox VM. Now, I would like to install Emacs for use from the command line only.

When I do a search for emacs using yum search emacs the only application level package seems to be "emacs" so I run yum install emacs and it shows me the list of dependencies it wants to download.

These dependencies libcairo, libasound, and a ton of libX* packages that have no business being downloaded and installed for a copy of Emacs that will be used from the command line only (I am trying to keep this minimal since this will be cloned 10 times per developer machine for network simulation but a text editor really is necessary).

So, are there some flags to set to prevent all the graphical related packages from installing? I remember Gentoo's emerge had paremeters like that, or am I just installing the wrong package?

Best Answer

No. There is emacs-nox on CentOS and Fedora.

$ sudo yum -y install emacs-nox
Related Question