How To Install libcgic2 on Debian 9
Introduction
In this tutorial we learn how to install libcgic2
on Debian 9.
What is libcgic2
libcgic2 is:
Cgic is an ANSI-C library for the creation of CGI-based World Wide Web applications. Cgic provides the following:
- Parses form data, correcting for defective and/or inconsistent browsers
- Transparently accepts both GET and POST form data
- Handles line breaks in form fields in a consistent manner
- Provides string, integer, floating-point, and single- and multiple-choice functions to retrieve form data
- Provides bounds checking for numeric fields
- Loads CGI environment variables into C strings which are always non-null
- Provides a way to capture CGI situations for replay in a debugging environment
This package provides a shared library version of cgic.
There are three methods to install libcgic2
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libcgic2 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libcgic2
using apt-get
by running the following command:
sudo apt-get -y install libcgic2
Install libcgic2 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcgic2
using apt
by running the following command:
sudo apt -y install libcgic2
Install libcgic2 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 libcgic2
using aptitude
by running the following command:
sudo aptitude -y install libcgic2
How To Uninstall libcgic2 on Debian 9
To uninstall only the libcgic2
package we can use the following command:
sudo apt-get remove libcgic2
Uninstall libcgic2 And Its Dependencies
To uninstall libcgic2
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libcgic2
Remove libcgic2 Configurations and Data
To remove libcgic2
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libcgic2
Remove libcgic2 configuration, data, and all of its dependencies
We can use the following command to remove libcgic2
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcgic2
Dependencies
libcgic2 have the following dependencies:
References
Summary
In this tutorial we learn how to install libcgic2
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.