How To Install python-grokcore.component on Ubuntu 18.04

In this tutorial we learn how to install python-grokcore.component on Ubuntu 18.04. python-grokcore.component is Grok-like configuration for basic components

Introduction

In this tutorial we learn how to install python-grokcore.component on Ubuntu 18.04.

What is python-grokcore.component

python-grokcore.component is:

This package provides base classes of basic component types for the Zope Component Architecture, as well as means for configuring and registering them directly in Python (without ZCML).

There are three methods to install python-grokcore.component 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 python-grokcore.component 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-grokcore.component using apt-get by running the following command:

sudo apt-get -y install python-grokcore.component

Install python-grokcore.component Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-grokcore.component

Install python-grokcore.component 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 python-grokcore.component using aptitude by running the following command:

sudo aptitude -y install python-grokcore.component

How To Uninstall python-grokcore.component on Ubuntu 18.04

To uninstall only the python-grokcore.component package we can use the following command:

sudo apt-get remove python-grokcore.component

Uninstall python-grokcore.component And Its Dependencies

To uninstall python-grokcore.component and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove python-grokcore.component

Remove python-grokcore.component Configurations and Data

To remove python-grokcore.component configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-grokcore.component

Remove python-grokcore.component configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-grokcore.component

References

Summary

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