How to Uninstall or Install cccc Ubuntu 22.04

Updated: September 11, 2022

CCCC analyses and reports measurements of source code in C, C++, and Java. The metrics supported include lines of code, McCabe’s Cyclomatic Complexity, and measures of module fan-out/fan-in. I will show you how to install cccc on Ubuntu 22.04 in this tutorial.

Requirements to install

  • OS: cccc needs Ubuntu 22.04 to work
  • Privileges: Verify that you can execute the sudo commands line.

Prerequisites to install cccc on Ubuntu 22.04

Install cccc Ubuntu 22.04

cccc 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 that you think is easy and you can follow.

Install cccc using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to get cccc on your Ubuntu.

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:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install cccc Ubuntu by executing this command in the terminal.

sudo apt-get install cccc

Install cccc using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt-get install aptitude

Then, you can now install cccc by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install cccc Ubuntu by pasting this command into the terminal and executing it.

sudo aptitude -y install cccc

Uninstall cccc on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a cccc.

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

sudo apt remove --auto-remove cccc

You can also execute this command if you want to uninstall cccc and remove its data and dependencies:

sudo apt autoremove --purge cccc

Summary

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