How To Install porg on Ubuntu 22.04

In this tutorial we learn how to install porg on Ubuntu 22.04. porg is Package manager/organizer for software installed from source

Introduction

In this tutorial we learn how to install porg on Ubuntu 22.04.

What is porg

porg is:

Porg (formerly known as paco), is a program to aid management of software packages installed from source code.

After the installation of such packages, one is usually left with having no idea of what it was installed and where it all went, making it difficult to uninstall the package in the future. Porg was written to solve this problem in a quite simple fashion.

When installing a package from sources, porg wraps the install command (e.g. “make install”), and saves installation information into a its own flat-file text database.

This package is a complete replacement for the deprecated ‘paco’ package.

There are three methods to install porg on Ubuntu 22.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 porg Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install porg

Install porg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install porg

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

sudo aptitude -y install porg

How To Uninstall porg on Ubuntu 22.04

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

sudo apt-get remove porg

Uninstall porg And Its Dependencies

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

sudo apt-get -y autoremove porg

Remove porg Configurations and Data

To remove porg configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge porg

Remove porg configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge porg

References

Summary

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