How To Install libfdisk1 on Ubuntu 20.04

In this tutorial we learn how to install libfdisk1 on Ubuntu 20.04. libfdisk1 is fdisk partitioning library fdisk partitioning library

Introduction

In this tutorial we learn how to install libfdisk1 on Ubuntu 20.04.

What is libfdisk1

libfdisk1 is:

The libfdisk library is used for manipulating partition tables. It is the core of the fdisk, cfdisk, and sfdisk tools. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

Package: libfdisk1 Architecture: amd64 Version: 2.34-0.1ubuntu9 Multi-Arch: same Priority: required Section: libs Source: util-linux Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: LaMont Jones [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 548 Depends: libblkid1 (>= 2.24.2), libc6 (>= 2.25), libuuid1 (>= 2.16) Filename: pool/main/u/util-linux/libfdisk1_2.34-0.1ubuntu9_amd64.deb Size: 174532 MD5sum: b8599df5be7fad670a709c5a265abdce SHA1: ad567ac778af2ae5a34c9c44b35872e0ce08f1c6 SHA256: 2d32fcae920559f2f26288c5d837f359ce92ad76f2d668ab54ea3b7bf6ea0d86 Description-en: fdisk partitioning library The libfdisk library is used for manipulating partition tables. It is the core of the fdisk, cfdisk, and sfdisk tools. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install libfdisk1 on Ubuntu 20.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 libfdisk1 Using apt-get

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

sudo apt-get update

After updating apt database, We can install libfdisk1 using apt-get by running the following command:

sudo apt-get -y install libfdisk1

Install libfdisk1 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libfdisk1 using apt by running the following command:

sudo apt -y install libfdisk1

Install libfdisk1 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 libfdisk1 using aptitude by running the following command:

sudo aptitude -y install libfdisk1

How To Uninstall libfdisk1 on Ubuntu 20.04

To uninstall only the libfdisk1 package we can use the following command:

sudo apt-get remove libfdisk1

Uninstall libfdisk1 And Its Dependencies

To uninstall libfdisk1 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libfdisk1

Remove libfdisk1 Configurations and Data

To remove libfdisk1 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libfdisk1

Remove libfdisk1 configuration, data, and all of its dependencies

We can use the following command to remove libfdisk1 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libfdisk1

References

Summary

In this tutorial we learn how to install libfdisk1 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.