How to Uninstall and Install rebar Ubuntu 22.04

Updated: September 16, 2022

rebar is an Erlang build tool that makes it easy to compile and test Erlang applications, port drivers and releases. I will show you how to install rebar on Ubuntu 22.04 in this guide.

Prerequisites

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install rebar on Ubuntu 22.04

Install rebar Ubuntu 22.04

rebar 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 rebar using APT

This is a popular method for installing any Ubuntu packages because it is simple to understand, even if you are a Linux beginner. Following these steps to install rebar on your Ubuntu 22.04.

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-get -y update

Step 2: Install the package on Ubuntu 22.04. You can now install rebar Ubuntu by executing this command in the terminal.

sudo apt -y install rebar

Install rebar using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After installing, you can now install rebar, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt update

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

sudo aptitude install rebar

Uninstall rebar on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

If you installed rebar using APT or Aptitude, you could uninstall rebar on Ubuntu by executing this command

sudo apt remove --auto-remove rebar

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

sudo apt autoremove --purge rebar

Summary

In this tutorial, I showed you ways to install rebar on Ubuntu 22.04 and ways to uninstall rebar too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.