How to Install or Uninstall cross-gcc-dev Ubuntu 22.04

Updated: August 30, 2022

This package provides the rules and scripts for making cross-toolchain packages. It can also be used directly to make cross-toolchains that are not packaged for the archive. In this guide, I will show you ways to install cross-gcc-dev Ubuntu 22.04.

Software Requirement

  • OS: Ubuntu 22.04 is needed for cross-gcc-dev to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install cross-gcc-dev on Ubuntu 22.04

Install cross-gcc-dev Ubuntu 22.04

cross-gcc-dev 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 cross-gcc-dev using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to get cross-gcc-dev on your Ubuntu 22.04.

Step 1: Update the APT database to download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install cross-gcc-dev Ubuntu by executing this command in the terminal.

sudo apt install cross-gcc-dev

Install cross-gcc-dev using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt install aptitude

Then, you can now install cross-gcc-dev, just following these steps:

Step 1: Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install cross-gcc-dev Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude -y install cross-gcc-dev

Uninstall cross-gcc-dev 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 cross-gcc-dev, can be easily uninstalled by anyone.

This command can be used to uninstall cross-gcc-dev from Ubuntu 22.04 if it was installed using APT or Aptitude.

sudo apt remove --auto-remove cross-gcc-dev

If you want to uninstall cross-gcc-dev and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge cross-gcc-dev


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