How To Install pick on Ubuntu 22.04

In this tutorial we learn how to install pick on Ubuntu 22.04. pick is utility to choose one option from a set of choices

Introduction

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

What is pick

pick is:

The pick utility allows users to choose one option from a set of choices using an interface with fuzzy search functionality. pick reads a list of choices on stdin and outputs the selected choice on stdout. Therefore it is easily used both in pipelines and subshells.

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

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

sudo apt-get update

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

sudo apt-get -y install pick

Install pick Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install pick

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

sudo aptitude -y install pick

How To Uninstall pick on Ubuntu 22.04

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

sudo apt-get remove pick

Uninstall pick And Its Dependencies

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

sudo apt-get -y autoremove pick

Remove pick Configurations and Data

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

sudo apt-get -y purge pick

Remove pick configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge pick

References

Summary

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