Ways to Install or Uninstall libonnx-dev on Ubuntu 22.04

Updated: October 25, 2022

Open Neural Network Exchange (ONNX) is the first step toward an open ecosystem that empowers AI developers to choose the right tools as their project evolves. ONNX provides an open source format for AI models. It defines an extensible computation graph model, as well as definitions of built-in operators and standard data types. Initially onnx focuses on the capabilities needed for inferencing (evaluation). In this tutorial, I will show you how to install libonnx-dev on Ubuntu 22.04.

Requirements

  • OS: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install libonnx-dev on Ubuntu 22.04

Install libonnx-dev Ubuntu 22.04

libonnx-dev 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 libonnx-dev using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get libonnx-dev on your Ubuntu 22.04.

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. Launching the terminal and entering 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 libonnx-dev Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get -y install libonnx-dev

Install libonnx-dev using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt -y install aptitude

Then, you can now install libonnx-dev, just following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt update

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

sudo aptitude -y install libonnx-dev

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

sudo apt remove --auto-remove libonnx-dev

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

sudo apt autoremove --purge libonnx-dev

Summary

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