How To Install libc-bin on Ubuntu 18.04

In this tutorial we learn how to install libc-bin on Ubuntu 18.04. libc-bin is GNU C Library

Introduction

In this tutorial we learn how to install libc-bin on Ubuntu 18.04.

What is libc-bin

libc-bin is:

This package contains utility programs related to the GNU C Library.

  • catchsegv: catch segmentation faults in programs
  • getconf: query system configuration variables
  • getent: get entries from administrative databases
  • iconv, iconvconfig: convert between character encodings
  • ldd, ldconfig: print/configure shared library dependencies
  • locale, localedef: show/generate locale definitions
  • tzselect, zdump, zic: select/dump/compile time zones

There are three methods to install libc-bin on Ubuntu 18.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 libc-bin Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libc-bin using apt-get by running the following command:

sudo apt-get -y install libc-bin

Install libc-bin Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libc-bin

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

sudo aptitude -y install libc-bin

How To Uninstall libc-bin on Ubuntu 18.04

To uninstall only the libc-bin package we can use the following command:

sudo apt-get remove libc-bin

Uninstall libc-bin And Its Dependencies

To uninstall libc-bin and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libc-bin

Remove libc-bin Configurations and Data

To remove libc-bin configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libc-bin

Remove libc-bin configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libc-bin

References

Summary

In this tutorial we learn how to install libc-bin package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.