How To Install chibicc on Debian 12
Introduction
In this tutorial we learn how to install chibicc
on Debian 12.
What is chibicc
chibicc is:
This is yet another small C compiler that implements most C11 features. Even though it still probably falls into the “toy compilers” category just like other small compilers do, chibicc can compile several real-world programs, including Git, SQLite, libpng and chibicc itself, without making modifications to the compiled programs. Generated executables of these programs pass their corresponding test suites. So, chibicc actually supports a wide variety of C11 features and is able to compile hundreds of thousands of lines of real-world C code correctly.
There are three methods to install chibicc
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 chibicc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install chibicc
using apt-get
by running the following command:
sudo apt-get -y install chibicc
Install chibicc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install chibicc
using apt
by running the following command:
sudo apt -y install chibicc
Install chibicc 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 chibicc
using aptitude
by running the following command:
sudo aptitude -y install chibicc
How To Uninstall chibicc on Debian 12
To uninstall only the chibicc
package we can use the following command:
sudo apt-get remove chibicc
Uninstall chibicc And Its Dependencies
To uninstall chibicc
and its dependencies that are no longer needed by Debian 12, we can use the command below:
sudo apt-get -y autoremove chibicc
Remove chibicc Configurations and Data
To remove chibicc
configuration and data from Debian 12 we can use the following command:
sudo apt-get -y purge chibicc
Remove chibicc configuration, data, and all of its dependencies
We can use the following command to remove chibicc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge chibicc
Dependencies
chibicc have the following dependencies:
References
Summary
In this tutorial we learn how to install chibicc
package on Debian 12 using different package management tools: apt
, apt-get
and aptitude
.