How To Install python-zope.app.localpermission on Ubuntu 18.04

In this tutorial we learn how to install python-zope.app.localpermission on Ubuntu 18.04. python-zope.app.localpermission is Local Persistent Permissions for zope.security

Introduction

In this tutorial we learn how to install python-zope.app.localpermission on Ubuntu 18.04.

What is python-zope.app.localpermission

python-zope.app.localpermission is:

This package implements local persistent permissions for zope.security that can be added and registered per site.

This is a part of “Through The Web” development pattern that is not used much by zope community and not really supported in zope framework anymore nowadays, so it can be considered as deprecated.

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

sudo apt-get -y install python-zope.app.localpermission

Install python-zope.app.localpermission Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-zope.app.localpermission using apt by running the following command:

sudo apt -y install python-zope.app.localpermission

Install python-zope.app.localpermission 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-zope.app.localpermission using aptitude by running the following command:

sudo aptitude -y install python-zope.app.localpermission

How To Uninstall python-zope.app.localpermission on Ubuntu 18.04

To uninstall only the python-zope.app.localpermission package we can use the following command:

sudo apt-get remove python-zope.app.localpermission

Uninstall python-zope.app.localpermission And Its Dependencies

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

sudo apt-get -y autoremove python-zope.app.localpermission

Remove python-zope.app.localpermission Configurations and Data

To remove python-zope.app.localpermission configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge python-zope.app.localpermission

Remove python-zope.app.localpermission configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-zope.app.localpermission

References

Summary

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