How To Install idle-python2.7 on Ubuntu 20.04

In this tutorial we learn how to install idle-python2.7 on Ubuntu 20.04. idle-python2.7 is IDE for Python (v2.7) using Tkinter IDE for Python (v2.7) using Tkinter

Introduction

In this tutorial we learn how to install idle-python2.7 on Ubuntu 20.04.

What is idle-python2.7

idle-python2.7 is:

IDLE is an Integrated Development Environment for Python (v2.7). IDLE is written using Tkinter and therefore quite platform-independent.

Package: idle-python2.7 Architecture: all Version: 2.7.18~rc1-2 Priority: optional Section: universe/python Source: python2.7 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Matthias Klose [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 1312 Depends: python2.7, python-tk (>= 2.6~a3), python2.7-tk Replaces: python2.7 (« 2.6.1-2) Enhances: python2.7 Filename: pool/universe/p/python2.7/idle-python2.7_2.7.18~rc1-2_all.deb Size: 259528 MD5sum: 44140c3a4fbbd94b75228f42d03b069c SHA1: 1e3e34eec4406a1ef752ff33551186f90f6bc4f3 SHA256: 039f3394ef972a108cebaa9e67f72f0d5ef0ce1d170e1c64fede5d7c0a3945fc Description-en: IDE for Python (v2.7) using Tkinter IDLE is an Integrated Development Environment for Python (v2.7). IDLE is written using Tkinter and therefore quite platform-independent.

There are three methods to install idle-python2.7 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 idle-python2.7 Using apt-get

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

sudo apt-get update

After updating apt database, We can install idle-python2.7 using apt-get by running the following command:

sudo apt-get -y install idle-python2.7

Install idle-python2.7 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install idle-python2.7 using apt by running the following command:

sudo apt -y install idle-python2.7

Install idle-python2.7 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 idle-python2.7 using aptitude by running the following command:

sudo aptitude -y install idle-python2.7

How To Uninstall idle-python2.7 on Ubuntu 20.04

To uninstall only the idle-python2.7 package we can use the following command:

sudo apt-get remove idle-python2.7

Uninstall idle-python2.7 And Its Dependencies

To uninstall idle-python2.7 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove idle-python2.7

Remove idle-python2.7 Configurations and Data

To remove idle-python2.7 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge idle-python2.7

Remove idle-python2.7 configuration, data, and all of its dependencies

We can use the following command to remove idle-python2.7 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge idle-python2.7

References

Summary

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