How to Install and Uninstall libsaxonhe-java on Ubuntu 22.04

Updated: October 29, 2022

This is a Home Edition of SAXON XSLT processor developed by Saxonica Limited. It provides implementations of XSLT 2.0, XQuery 1.0 and XPath 2.0 at the basic level of conformance defined by W3C. Not included in the Home Edition are: schema processing and schema aware XSLT and XQuery; support for the 3.0 versions of the specifications; numerous Saxon extensions; calling out to Java methods; XQuery Update support; various optimizations including join optimization; streamed processing; and byte code generation. I will show you how to install libsaxonhe-java on Ubuntu 22.04 in this tutorial.

Prerequisites to install

  • OS: libsaxonhe-java needs Ubuntu 22.04 to work
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install libsaxonhe-java on Ubuntu 22.04

Install libsaxonhe-java Ubuntu 22.04

libsaxonhe-java 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 libsaxonhe-java using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these instructions to get libsaxonhe-java on your Ubuntu.

Step 1: Update the APT database to fetch 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 libsaxonhe-java Ubuntu by executing this command in the terminal.

sudo apt-get -y install libsaxonhe-java

Install libsaxonhe-java 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 -y install aptitude

After installing aptitude, you can now install libsaxonhe-java by 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-get update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install libsaxonhe-java Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install libsaxonhe-java

Uninstall libsaxonhe-java on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu is difficult? You are mistaken; Anyone can easily uninstall any program, not just libsaxonhe-java.

If you installed libsaxonhe-java using APT or Aptitude, you could uninstall libsaxonhe-java on Ubuntu by running this command

sudo apt remove --auto-remove libsaxonhe-java

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

sudo apt autoremove --purge libsaxonhe-java

Conclusion

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