How To Install pdqsort-dev on Debian 12
Introduction
In this tutorial we learn how to install pdqsort-dev
on Debian 12.
What is pdqsort-dev
pdqsort-dev is:
Pattern-defeating quicksort (pdqsort) is a novel sorting algorithm that combines the fast average case of randomized quicksort with the fast worst case of heapsort, while achieving linear time on inputs with certain patterns. pdqsort is an extension and improvement of David Mussers introsort.
This package provides c++ header with drop-in replacement for std::sort.
There are three methods to install pdqsort-dev
on Debian 12. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install pdqsort-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install pdqsort-dev
using apt-get
by running the following command:
sudo apt-get -y install pdqsort-dev
Install pdqsort-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install pdqsort-dev
using apt
by running the following command:
sudo apt -y install pdqsort-dev
Install pdqsort-dev 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install pdqsort-dev
using aptitude
by running the following command:
sudo aptitude -y install pdqsort-dev
How To Uninstall pdqsort-dev on Debian 12
To uninstall only the pdqsort-dev
package we can use the following command:
sudo apt-get remove pdqsort-dev
Uninstall pdqsort-dev And Its Dependencies
To uninstall pdqsort-dev
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove pdqsort-dev
Remove pdqsort-dev Configurations and Data
To remove pdqsort-dev
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge pdqsort-dev
Remove pdqsort-dev configuration, data, and all of its dependencies
We can use the following command to remove pdqsort-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge pdqsort-dev
Dependencies
pdqsort-dev have the following dependencies:
References
Summary
In this tutorial we learn how to install pdqsort-dev
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.