How to Uninstall or Install highlight on Ubuntu 22.04

Updated: September 3, 2022

A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX, SVG, XML or terminal escape sequences with syntax highlighting. It supports several programming and markup languages. Language descriptions are configurable and support regular expressions. The utility offers indentation and reformatting capabilities. It is easily possible to create new language definitions and colour themes. I will show you how to install highlight on Ubuntu 22.04 in this tutorial.

Prerequisites to install

  • Operating system: Ubuntu 22.04 is needed for highlight to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install highlight on Ubuntu 22.04

Install highlight Ubuntu 22.04

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

Install highlight 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 highlight on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

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

sudo apt -y install highlight

Install highlight 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. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After installing, you can now install highlight, 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. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install highlight Ubuntu by executing this command in the terminal.

sudo aptitude install highlight

Uninstall highlight 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 highlight using APT or Aptitude, you could uninstall highlight on Ubuntu by executing this command

sudo apt remove --auto-remove highlight

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

sudo apt autoremove --purge highlight

Conclusion

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