How To Install peco on Ubuntu 22.04

In this tutorial we learn how to install peco on Ubuntu 22.04. peco is Simplistic interactive filtering tool

Introduction

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

What is peco

peco is:

peco Simplistic interactive filtering tool

peco can be a great tool to filter stuff like logs, process stats, find files, because unlike grep, you can type as you think and look through the current results.

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

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

sudo apt-get update

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

sudo apt-get -y install peco

Install peco Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install peco

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

sudo aptitude -y install peco

How To Uninstall peco on Ubuntu 22.04

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

sudo apt-get remove peco

Uninstall peco And Its Dependencies

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

sudo apt-get -y autoremove peco

Remove peco Configurations and Data

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

sudo apt-get -y purge peco

Remove peco configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge peco

References

Summary

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