How To Install libgcc-10-dev on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libgcc-10-dev
on Ubuntu 20.04.
What is libgcc-10-dev
libgcc-10-dev is:
This package contains the headers and static library files necessary for building C programs which use libgcc, libgomp, libquadmath, libssp or libitm.
Package: libgcc-10-dev Architecture: amd64 Version: 10-20200411-0ubuntu1 Multi-Arch: same Priority: optional Section: libdevel Source: gcc-10 Origin: Ubuntu Maintainer: Ubuntu Core developers [email protected] Original-Maintainer: Debian GCC Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 13768 Depends: gcc-10-base (= 10-20200411-0ubuntu1), libgcc-s1 (>= 10-20200411-0ubuntu1), libgomp1 (>= 10-20200411-0ubuntu1), libitm1 (>= 10-20200411-0ubuntu1), libatomic1 (>= 10-20200411-0ubuntu1), libasan6 (>= 10-20200411-0ubuntu1), liblsan0 (>= 10-20200411-0ubuntu1), libtsan0 (>= 10-20200411-0ubuntu1), libubsan1 (>= 10-20200411-0ubuntu1), libquadmath0 (>= 10-20200411-0ubuntu1) Recommends: libc6-dev (>= 2.13-0ubuntu6) Breaks: libgccjit-10-dev (« 10-20200321-1) Replaces: libgccjit-10-dev (« 10-20200321-1) Filename: pool/main/g/gcc-10/libgcc-10-dev_10-20200411-0ubuntu1_amd64.deb Size: 2340176 MD5sum: 07d3189e6b03d584cf719f3fc4d1b275 SHA1: c73070c7fdb48520ba9931b600a34ea6df4a29d4 SHA256: cb5c73f044d90ca6fac1e5851743718b9e129ebaf4c4860e5264fd6eee06d691 Homepage: http://gcc.gnu.org/ Description-en: GCC support library (development files) This package contains the headers and static library files necessary for building C programs which use libgcc, libgomp, libquadmath, libssp or libitm.
There are three methods to install libgcc-10-dev
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libgcc-10-dev Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgcc-10-dev
using apt-get
by running the following command:
sudo apt-get -y install libgcc-10-dev
Install libgcc-10-dev Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgcc-10-dev
using apt
by running the following command:
sudo apt -y install libgcc-10-dev
Install libgcc-10-dev 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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libgcc-10-dev
using aptitude
by running the following command:
sudo aptitude -y install libgcc-10-dev
How To Uninstall libgcc-10-dev on Ubuntu 20.04
To uninstall only the libgcc-10-dev
package we can use the following command:
sudo apt-get remove libgcc-10-dev
Uninstall libgcc-10-dev And Its Dependencies
To uninstall libgcc-10-dev
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libgcc-10-dev
Remove libgcc-10-dev Configurations and Data
To remove libgcc-10-dev
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libgcc-10-dev
Remove libgcc-10-dev configuration, data, and all of its dependencies
We can use the following command to remove libgcc-10-dev
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgcc-10-dev
References
Summary
In this tutorial we learn how to install libgcc-10-dev
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.