TCC (for Tiny C Compiler) is a small and fast ANSI C compiler. It generates optimized x86 code, and can compile, assemble, and link several times faster than ‘gcc -O0’. Any C dynamic library can be used directly. It includes an optional memory and bounds checker, and bounds-checked code can be mixed freely with standard code. C script is also supported via the usual hash-bang mechanism. In this guide, I will show you how to install tcc on Ubuntu 22.04.
- OS: Ubuntu 22.04 is needed for tcc to work
- Privileges: Ensure that you are able to execute the sudo commands line.
Install tcc Ubuntu 22.04
tcc 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 you believe is simple and easy to follow.
Install tcc using APT
This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these steps to install tcc on your Ubuntu 22.04.
Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:
Step 2: Install the package on Ubuntu 22.04. You can now install tcc Ubuntu by executing this command in the terminal.
Install tcc 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.
Then, you can now install tcc, just following these steps:
Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:
Step 2: Install the package on Ubuntu 22.04. After updating, you can install tcc Ubuntu by executing this command in the terminal.
Uninstall tcc 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.
If you installed tcc using APT or Aptitude, you could uninstall tcc on Ubuntu by following this step:
If you want to uninstall tcc and remove its data and dependencies, you can also run the following command:
In this guide, I showed you ways to install tcc on Ubuntu 22.04 and some ways to uninstall tcc too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.