How to Uninstall and Install libcurl-dev on Ubuntu 22.04

Updated: October 30, 2022

This is a virtual package. See the Debian policy for a definition of virtual packages. I will show you how to install libcurl-dev on Ubuntu 22.04 in this tutorial.

Requirements to install

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install libcurl-dev on Ubuntu 22.04

Install libcurl-dev Ubuntu 22.04

libcurl-dev 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 that you think is easy and you can follow.

Install libcurl-dev using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to get libcurl-dev on your Ubuntu 22.04.

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

sudo apt update

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

sudo apt install libcurl-dev

Install libcurl-dev 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. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt -y install aptitude

After installing, you can now install libcurl-dev, just following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

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

sudo aptitude -y install libcurl-dev

Uninstall libcurl-dev 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.

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

sudo apt remove --auto-remove libcurl-dev

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

sudo apt autoremove --purge libcurl-dev

Ending

In this tutorial, I showed you ways to install libcurl-dev on Ubuntu 22.04 and ways to uninstall libcurl-dev too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.