How to Uninstall and Install mame Ubuntu 22.04

Updated: August 22, 2022

MAME is a hardware emulator: it faithfully reproduces the behavior of many arcade machines (it is not a simulation). This program is not a game but can directly, through ROM images, run the complete system of these old arcade machines. These ROMs are subject to copyright and it is in most of the cases illegal to use them if you do not own the arcade machine. In this guide, I will show you how to install mame on Ubuntu 22.04.

Requirements to install

  • OS: Ubuntu 22.04 is needed for mame to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install mame on Ubuntu 22.04

Install mame Ubuntu 22.04

mame is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install mame using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these instructions to get mame on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install mame Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install mame

Install mame using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt-get -y install aptitude

Then, you can now install mame, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install mame Ubuntu by executing this command in the terminal.

sudo aptitude -y install mame

Install mame using Snap

Snap is a software package and deployment system that uses self-contained packages to deliver software to users. Therefore, Snap enables you to install mame snap easily. Simply copying and pasting this command into the terminal to run it.

sudo snap install mame

Uninstall mame 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 mame, can be easily uninstalled by anyone.

This command can be used to uninstall mame from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove mame

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

sudo apt autoremove --purge mame

If you installed mame using Snap, you could follow this step:

sudo snap remove mame

Conclusion

In this guide, I showed you ways to install mame on Ubuntu 22.04 and ways to uninstall mame too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.