How To Install libpolyclipping-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libpolyclipping-dev
on Ubuntu 20.04.
What is libpolyclipping-dev
libpolyclipping-dev is:
The Clipper library performs polygon clipping, polygon offsetting and polyline offsetting. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Also, there are no restrictions on the types of polygons that can be clipped - they can have holes, be self-intersecting, have coincident edges etc.
These are the files needed for compiling programs with libpolyclipping.
There are three methods to install libpolyclipping-dev
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 libpolyclipping-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 libpolyclipping-dev
using apt-get
by running the following command:
sudo apt-get -y install libpolyclipping-dev
Install libpolyclipping-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpolyclipping-dev
using apt
by running the following command:
sudo apt -y install libpolyclipping-dev
Install libpolyclipping-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libpolyclipping-dev
using aptitude
by running the following command:
sudo aptitude -y install libpolyclipping-dev
How To Uninstall libpolyclipping-dev on Ubuntu 20.04
To uninstall only the libpolyclipping-dev
package we can use the following command:
sudo apt-get remove libpolyclipping-dev
Uninstall libpolyclipping-dev And Its Dependencies
To uninstall libpolyclipping-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libpolyclipping-dev
Remove libpolyclipping-dev Configurations and Data
To remove libpolyclipping-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libpolyclipping-dev
Remove libpolyclipping-dev configuration, data, and all of its dependencies
We can use the following command to remove libpolyclipping-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpolyclipping-dev
References
Summary
In this tutorial we learn how to install libpolyclipping-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.