In order to install Emacs in Linux, you can check first to see if your operating system offers a graphical package manager or “shop.” If not, you can enter the following commands into any terminal emulator.
For systems in the Red Hat family, which includes CentOS (the default OS for the InMotion VPS package), you can use the yum
command to get the version of Emacs available in the repository:
sudo yum install emacs
For the Debian family, including Ubuntu, you can run this command:
sudo apt-get install emacs