Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm newbie on BSD.

I installed FreeBSD with minimal configuration, so there's no package installed. I tried pkg_add -r emacs, the command tried installing many of X11 related packages (not sure, but it look like). There are so many ports on BSD ports website, so I'm confusing what's suitable for me.

I'm looking for a light-weight Emac with command-line interface. I'm trying to use command-line only environment. So GUI is not an option.

share|improve this question
What version of FreeBSD? Are you sure it was installing X11 and not just some of the Xlibraries that Emacs requires? – Jed Daniels Aug 27 '10 at 1:33
$ pkg_add -r vim-lite /me ducks ;) – EEAA Aug 27 '10 at 1:40
@Jed I'm not sure it was X11 or not, but it look like X11 packages. So many packages. I'm sorry for this. And I don't think Emacs requires any X11 related library packages. BSD version is 8.1 – Eonil Aug 27 '10 at 1:59
@ErikA, vi is included in the base system. Real men use vi. @Eonil, Emacs can be built for X11 or without; see my answer for the without version. – Chris S Aug 27 '10 at 2:54
@ChrisS Now it's years ago, and you were right. I ditched emacs and took vi. Real men use vi. – Eonil Feb 27 '14 at 2:11
up vote 7 down vote accepted

Under the old pkgtools system: You want pkg_add -r emacs-nox11
For the newer pkgng system: You want pkg install emacs-nox11

share|improve this answer
Updated with both options – Chris S Jun 4 '15 at 19:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.