How To Install python-opster on Ubuntu 18.04

In this tutorial we learn how to install python-opster on Ubuntu 18.04. python-opster is python command line parsing speedster

Introduction

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

What is python-opster

python-opster is:

Opster is a command line parser, intended to make writing command line applications easy and painless. It uses built-in Python types (lists, dictionaries, etc) to define options, which makes configuration clear and concise. Additionally it contains possibility to handle subcommands (i.e. hg commit or svn update).

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

sudo apt-get -y install python-opster

Install python-opster Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-opster

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

sudo aptitude -y install python-opster

How To Uninstall python-opster on Ubuntu 18.04

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

sudo apt-get remove python-opster

Uninstall python-opster And Its Dependencies

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

sudo apt-get -y autoremove python-opster

Remove python-opster Configurations and Data

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

sudo apt-get -y purge python-opster

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

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

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

References

Summary

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