How To Install pd-hcs on Ubuntu 18.04

In this tutorial we learn how to install pd-hcs on Ubuntu 18.04. pd-hcs is Pd library of experiments in UNIX, the Pd GUI, and more

Introduction

In this tutorial we learn how to install pd-hcs on Ubuntu 18.04.

What is pd-hcs

pd-hcs is:

The ‘hcs’ library is a random grabbag of objects that are experiments that sometimes lead to full-fledged libraries. There are objects for getting UNIX file and permissions information (group, gid2group_name, group_name2gid, uid2username, username2uid, hostname, stat, uname, setenv), Pd GUI manipulation (canvas_name, window_name, sys_gui, tcl_version, ce_path, tkconsole, pointer_position, cursor), handling filenames (file_type, folder_list, helppath, split_path), and more.

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

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

sudo apt-get update

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

sudo apt-get -y install pd-hcs

Install pd-hcs Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pd-hcs

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

sudo aptitude -y install pd-hcs

How To Uninstall pd-hcs on Ubuntu 18.04

To uninstall only the pd-hcs package we can use the following command:

sudo apt-get remove pd-hcs

Uninstall pd-hcs And Its Dependencies

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

sudo apt-get -y autoremove pd-hcs

Remove pd-hcs Configurations and Data

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

sudo apt-get -y purge pd-hcs

Remove pd-hcs configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pd-hcs

References

Summary

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