How to Install or Uninstall gerbera on Ubuntu 22.04

Updated: September 19, 2022

Gerbera is an UPnP MediaServer with a nice web user interface based on MediaTomb. It allows you to stream your digital media through your home network and listen to/watch it on a variety of UPnP compatible devices. I will show you how to install gerbera on Ubuntu 22.04 in this guide.

Requirements

  • OS: gerbera needs Ubuntu 22.04 to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install gerbera on Ubuntu 22.04

Install gerbera Ubuntu 22.04

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

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install gerbera on your Ubuntu.

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 the following Linux command:

sudo apt update

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

sudo apt-get -y install gerbera

Install gerbera using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt-get install aptitude

Then, you can now install gerbera by 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 the following Linux command:

sudo apt-get -y update

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

sudo aptitude install gerbera

Uninstall gerbera on Ubuntu 22.04

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

If you installed gerbera using APT or Aptitude, you could uninstall gerbera on Ubuntu by following this step:

sudo apt remove --auto-remove gerbera

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

sudo apt autoremove --purge gerbera

Summary

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