How To Install emacs-auctex on CentOS 7

In this tutorial we learn how to install emacs-auctex on CentOS 7. emacs-auctex is Enhanced TeX modes for Emacs

Introduction

In this tutorial we learn how to install emacs-auctex on CentOS 7.

What is emacs-auctex

AUCTeX is an extensible package that supports writing and formatting TeX files for most variants of Emacs. AUCTeX supports many different TeX macro packages, including AMS-TeX, LaTeX, Texinfo and basic support for ConTeXt. Documentation can be found under /usr/share/doc, e.g. the reference card (tex-ref.pdf) and the FAQ. The AUCTeX manual is available in Emacs info (C-h i d m AUCTeX RET). On the AUCTeX home page, we provide manuals in various formats. AUCTeX includes preview-latex support which makes LaTeX a tightly integrated component of your editing workflow by visualizing selected source chunks (such as single formulas or graphics) directly as images in the source buffer. This package is for GNU Emacs.

We can use yum or dnf to install emacs-auctex on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install emacs-auctex.

Install emacs-auctex on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install emacs-auctex using yum by running the following command:

sudo yum -y install emacs-auctex

Install emacs-auctex on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install emacs-auctex using dnf by running the following command:

sudo dnf -y install emacs-auctex

How To Uninstall emacs-auctex on CentOS 7

To uninstall only the emacs-auctex package we can use the following command:

sudo dnf remove emacs-auctex

References

Summary

In this tutorial we learn how to install emacs-auctex on CentOS 7 using yum and dnf.