How to Uninstall or Install libwannier90-dev on Ubuntu 22.04

Updated: October 25, 2022

Wannier90 is an electronic-structure software computing maximally-localized Wannier functions (MLWF). It works on top of other electronic-structure software, such as Abinit, FLEUR, and PwSCF. In this guide, I will show you ways to install libwannier90-dev Ubuntu 22.04.

Requirements

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Check that you can run sudo commands.

Prerequisites to install libwannier90-dev on Ubuntu 22.04

Install libwannier90-dev Ubuntu 22.04

libwannier90-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 you believe is simple and easy to follow.

Install libwannier90-dev using APT

This is one of the most popular methods for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to get libwannier90-dev on your Ubuntu.

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

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install libwannier90-dev Ubuntu by executing this command in the terminal.

sudo apt-get install libwannier90-dev

Install libwannier90-dev using Aptitude

You must run this command to install Aptitude if you haven’t already done so on Ubuntu.

sudo apt-get -y install aptitude

Then, you can now install libwannier90-dev 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. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install libwannier90-dev Ubuntu by executing this command in the terminal.

sudo aptitude -y install libwannier90-dev

Uninstall libwannier90-dev on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a libwannier90-dev, can be easily uninstalled by anyone.

You can uninstall libwannier90-dev Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove libwannier90-dev

To uninstall libwannier90-dev and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge libwannier90-dev

Ending

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