How To Install python-sugar on Debian 9

In this tutorial we learn how to install python-sugar on Debian 9. python-sugar is Sugar Learning Platform - legacy core functionality

Introduction

In this tutorial we learn how to install python-sugar on Debian 9.

What is python-sugar

python-sugar is:

Sugar Learning Platform promotes collaborative learning through Sugar Activities that encourage critical thinking, the heart of a quality education. Designed from the ground up especially for children, Sugar offers an alternative to traditional ??office-desktop?? software.

This package contains some deprecated yet still widely used base modules for Sugar. Please use python-sugar3 instead where possible.

To get prettier tracebacks if things break, install ipython.

There are three methods to install python-sugar on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-sugar Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install python-sugar

Install python-sugar Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-sugar

Install python-sugar 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-sugar using aptitude by running the following command:

sudo aptitude -y install python-sugar

How To Uninstall python-sugar on Debian 9

To uninstall only the python-sugar package we can use the following command:

sudo apt-get remove python-sugar

Uninstall python-sugar And Its Dependencies

To uninstall python-sugar and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python-sugar

Remove python-sugar Configurations and Data

To remove python-sugar configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-sugar

Remove python-sugar configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-sugar

Dependencies

python-sugar have the following dependencies:

References

Summary

In this tutorial we learn how to install python-sugar package on Debian 9 using different package management tools: apt, apt-get and aptitude.