How to Uninstall or Install mmm-mode on Ubuntu 22.04

Updated: August 29, 2022

MMM Mode is a minor mode for Emacs that allows Multiple Major Modes (hence the name) to coexist in one buffer. It is particularly well-suited to editing embedded code, such as Mason server-side Perl, or HTML output in CGI scripts. I will show you how to install mmm-mode on Ubuntu 22.04 in this guide.

Requirements to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install mmm-mode on Ubuntu 22.04

Install mmm-mode Ubuntu 22.04

mmm-mode is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install mmm-mode using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install mmm-mode on your Ubuntu.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install mmm-mode Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt -y install mmm-mode

Install mmm-mode using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing it, you can now install mmm-mode, just following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install mmm-mode Ubuntu by executing this command in the terminal.

sudo aptitude install mmm-mode

Uninstall mmm-mode on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a mmm-mode, can be easily uninstalled by anyone.

If you installed mmm-mode using APT or Aptitude, you could uninstall mmm-mode on Ubuntu by running this command

sudo apt remove --auto-remove mmm-mode

If you want to uninstall mmm-mode and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge mmm-mode

Summary

In this guide, I showed you ways to install mmm-mode on Ubuntu 22.04 and ways to uninstall mmm-mode too. Please contact me if you require any assistance. I’d be delighted to respond.