How To Install libpython3.8 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libpython3.8
on Ubuntu 20.04.
What is libpython3.8
libpython3.8 is:
Python is a high-level, interactive, object-oriented language. Its 3.8 version includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics.
This package contains the shared runtime library, normally not needed for programs using the statically linked interpreter. Task: server, ubuntu-desktop-minimal, samba-server, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Package: libpython3.8 Architecture: amd64 Version: 3.8.2-1ubuntu1 Multi-Arch: same Priority: optional Section: libs Source: python3.8 Origin: Ubuntu Maintainer: Ubuntu Core Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 5371 Depends: libpython3.8-stdlib (= 3.8.2-1ubuntu1), libc6 (>= 2.29), libexpat1 (>= 2.1~beta3), zlib1g (>= 1:1.2.0) Filename: pool/main/p/python3.8/libpython3.8_3.8.2-1ubuntu1_amd64.deb Size: 1619972 MD5sum: 41765093f3f1ada00859ebed693c8b12 SHA1: 4ac808f297755987e8c6b96ef21508a05db8011a SHA256: d47a54492e5ec7199d150c74d67b6fcec03bfbe2449bae340a107568df3ab861 Description-en: Shared Python runtime library (version 3.8) Python is a high-level, interactive, object-oriented language. Its 3.8 version includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics.
This package contains the shared runtime library, normally not needed for programs using the statically linked interpreter. Task: server, ubuntu-desktop-minimal, samba-server, ubuntu-desktop, cloud-image, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
There are three methods to install libpython3.8
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 libpython3.8 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libpython3.8
using apt-get
by running the following command:
sudo apt-get -y install libpython3.8
Install libpython3.8 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpython3.8
using apt
by running the following command:
sudo apt -y install libpython3.8
Install libpython3.8 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 libpython3.8
using aptitude
by running the following command:
sudo aptitude -y install libpython3.8
How To Uninstall libpython3.8 on Ubuntu 20.04
To uninstall only the libpython3.8
package we can use the following command:
sudo apt-get remove libpython3.8
Uninstall libpython3.8 And Its Dependencies
To uninstall libpython3.8
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libpython3.8
Remove libpython3.8 Configurations and Data
To remove libpython3.8
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libpython3.8
Remove libpython3.8 configuration, data, and all of its dependencies
We can use the following command to remove libpython3.8
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpython3.8
References
Summary
In this tutorial we learn how to install libpython3.8
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.