How To Install xul-ext-ublock-origin on Ubuntu 18.04

In this tutorial we learn how to install xul-ext-ublock-origin on Ubuntu 18.04. xul-ext-ublock-origin is general-purpose lightweight ads, malware, trackers blocker

Introduction

In this tutorial we learn how to install xul-ext-ublock-origin on Ubuntu 18.04.

What is xul-ext-ublock-origin

xul-ext-ublock-origin is:

uBlock is a small footprint blocker for against web ads, malware, trackers, analytics and similar invasive items.

Compared to other blockers like AdBlock and Ghostery, µBlock is focused on having a smaller memory and CPU footprint.

This package provides the Mozilla version of the addon.

There are three methods to install xul-ext-ublock-origin on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install xul-ext-ublock-origin Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xul-ext-ublock-origin using apt-get by running the following command:

sudo apt-get -y install xul-ext-ublock-origin

Install xul-ext-ublock-origin Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xul-ext-ublock-origin using apt by running the following command:

sudo apt -y install xul-ext-ublock-origin

Install xul-ext-ublock-origin Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install xul-ext-ublock-origin using aptitude by running the following command:

sudo aptitude -y install xul-ext-ublock-origin

How To Uninstall xul-ext-ublock-origin on Ubuntu 18.04

To uninstall only the xul-ext-ublock-origin package we can use the following command:

sudo apt-get remove xul-ext-ublock-origin

Uninstall xul-ext-ublock-origin And Its Dependencies

To uninstall xul-ext-ublock-origin and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove xul-ext-ublock-origin

Remove xul-ext-ublock-origin Configurations and Data

To remove xul-ext-ublock-origin configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xul-ext-ublock-origin

Remove xul-ext-ublock-origin configuration, data, and all of its dependencies

We can use the following command to remove xul-ext-ublock-origin configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xul-ext-ublock-origin

References

Summary

In this tutorial we learn how to install xul-ext-ublock-origin package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.