How To Install libgcc-s1 on Ubuntu 20.04

In this tutorial we learn how to install libgcc-s1 on Ubuntu 20.04. libgcc-s1 is GCC support library GCC support library

Introduction

In this tutorial we learn how to install libgcc-s1 on Ubuntu 20.04.

What is libgcc-s1

libgcc-s1 is:

Shared version of the support library, a library of internal subroutines that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. Task: minimal

Package: libgcc-s1 Architecture: amd64 Version: 10-20200411-0ubuntu1 Multi-Arch: same Priority: required Section: libs 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: 120 Provides: libgcc1 (= 1:10-20200411-0ubuntu1) Depends: gcc-10-base (= 10-20200411-0ubuntu1), libc6 (>= 2.14) Breaks: cryptsetup-initramfs (« 2:2.2.2-3~) Replaces: libgcc1 (« 1:10) Filename: pool/main/g/gcc-10/libgcc-s1_10-20200411-0ubuntu1_amd64.deb Size: 41576 MD5sum: 90ae9ee6f1e004d7535af7a9ccecb20e SHA1: 5dd6b751e958cbba102b47e05d0a5db86c063eb8 SHA256: fb69f47490d22988ad8a1b3c19d5292e1ccdbd30661eedcd680f9a78b9b55d60 Homepage: http://gcc.gnu.org/ Description-en: GCC support library Shared version of the support library, a library of internal subroutines that GCC uses to overcome shortcomings of particular machines, or special needs for some languages. Task: minimal

There are three methods to install libgcc-s1 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-s1 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-s1 using apt-get by running the following command:

sudo apt-get -y install libgcc-s1

Install libgcc-s1 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libgcc-s1 using apt by running the following command:

sudo apt -y install libgcc-s1

Install libgcc-s1 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-s1 using aptitude by running the following command:

sudo aptitude -y install libgcc-s1

How To Uninstall libgcc-s1 on Ubuntu 20.04

To uninstall only the libgcc-s1 package we can use the following command:

sudo apt-get remove libgcc-s1

Uninstall libgcc-s1 And Its Dependencies

To uninstall libgcc-s1 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libgcc-s1

Remove libgcc-s1 Configurations and Data

To remove libgcc-s1 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libgcc-s1

Remove libgcc-s1 configuration, data, and all of its dependencies

We can use the following command to remove libgcc-s1 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libgcc-s1

References

Summary

In this tutorial we learn how to install libgcc-s1 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.