Ways to Install or Uninstall pcc Ubuntu 22.04

Updated: September 16, 2022

PCC is a small, simple, fast and understandable C99 compiler based on the original Portable C Compiler by S. C. Johnson, written in the late 1970s. Focus on being able to compile and run on a PDP11, even if it may not happen in reality, keeps it lean; abstinence from over-complicated algorithms leads to quick reliable code generation. Even though much of the compiler has been rewritten, some of the basics still remain. In this tutorial, I will show you how to install pcc on Ubuntu 22.04.

Prerequisites to install

  • Operating system: Ubuntu 22.04 is needed for pcc to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install pcc on Ubuntu 22.04

Install pcc Ubuntu 22.04

pcc 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 pcc 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 instructions to install pcc 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. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install pcc Ubuntu by executing this command in the terminal.

sudo apt-get install pcc

Install pcc 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. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt install aptitude

After installing, you can now install pcc by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install pcc Ubuntu by executing this command in the terminal.

sudo aptitude install pcc

Uninstall pcc on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a pcc, can be easily uninstalled by anyone.

This command can be used to uninstall pcc from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove pcc

If you want to uninstall pcc and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge pcc

Ending

In this tutorial, I showed you ways to install pcc on Ubuntu 22.04 and some ways to uninstall pcc too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.