How To Install pem on Ubuntu 18.04

In this tutorial we learn how to install pem on Ubuntu 18.04. pem is command line personal expense manager

Introduction

In this tutorial we learn how to install pem on Ubuntu 18.04.

What is pem

pem is:

This is a handy tool to help you keep track of your personal income and expenses. It is a command line alternative to other personal finance and money managers.

On GNU/Linux and other Unix-like systems, Pem works by storing the details in a CSV file placed in the ~/.pem directory under your $HOME directory. Each such file is named after the current month, and is automatically created by Pem when you enter the first record for a month. It is not advisable to edit these files by hand.

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

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

sudo apt-get update

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

sudo apt-get -y install pem

Install pem Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install pem using apt by running the following command:

sudo apt -y install pem

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

sudo aptitude -y install pem

How To Uninstall pem on Ubuntu 18.04

To uninstall only the pem package we can use the following command:

sudo apt-get remove pem

Uninstall pem And Its Dependencies

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

sudo apt-get -y autoremove pem

Remove pem Configurations and Data

To remove pem configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge pem

Remove pem configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pem

References

Summary

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