How To Install libgcc1 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libgcc1
on Ubuntu 20.04.
What is libgcc1
libgcc1 is:
This is a dependency package, and can be safely removed after upgrade.
Package: libgcc1 Architecture: amd64 Version: 1:10-20200411-0ubuntu1 Priority: required Section: universe/libs Source: gcc-10 (10-20200411-0ubuntu1) Origin: Ubuntu Maintainer: Ubuntu Core developers [email protected] Original-Maintainer: Debian GCC Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 120 Depends: gcc-10-base (= 10-20200411-0ubuntu1), libgcc-s1 (>= 10-20200411-0ubuntu1), libc6 (>= 2.14) Filename: pool/universe/g/gcc-10/libgcc1_10-20200411-0ubuntu1_amd64.deb Size: 41476 MD5sum: fb732e84cd5ce01cf52cc7168714b21a SHA1: d91b967ea4fbaa20a3d99a4d052d867a7543d1c1 SHA256: 4a2774a661c9b13cd8ae3f1bb70a8871523c8079dfdf5231aaf950f893da1d8d Homepage: http://gcc.gnu.org/ Description-en: GCC support library (dependency package) This is a dependency package, and can be safely removed after upgrade.
There are three methods to install libgcc1
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 libgcc1 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libgcc1
using apt-get
by running the following command:
sudo apt-get -y install libgcc1
Install libgcc1 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libgcc1
using apt
by running the following command:
sudo apt -y install libgcc1
Install libgcc1 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 libgcc1
using aptitude
by running the following command:
sudo aptitude -y install libgcc1
How To Uninstall libgcc1 on Ubuntu 20.04
To uninstall only the libgcc1
package we can use the following command:
sudo apt-get remove libgcc1
Uninstall libgcc1 And Its Dependencies
To uninstall libgcc1
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libgcc1
Remove libgcc1 Configurations and Data
To remove libgcc1
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libgcc1
Remove libgcc1 configuration, data, and all of its dependencies
We can use the following command to remove libgcc1
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libgcc1
References
Summary
In this tutorial we learn how to install libgcc1
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.