How To Install screenfetch on Ubuntu 18.04

In this tutorial we learn how to install screenfetch on Ubuntu 18.04. screenfetch is Bash Screenshot Information Tool

Introduction

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

What is screenfetch

screenfetch is:

screenFetch is a “Bash Screenshot Information Tool”. This handy Bash script can be used to generate one of those nifty terminal theme information + ASCII distribution logos you see in everyone’s screenshots nowadays.

It will auto-detect your distribution and display an ASCII version of that distribution’s logo and some valuable information to the right. There are options to specify no ascii art, colors, taking a screenshot upon displaying info, and even customizing the screenshot command.

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

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

sudo apt-get update

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

sudo apt-get -y install screenfetch

Install screenfetch Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install screenfetch

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

sudo aptitude -y install screenfetch

How To Uninstall screenfetch on Ubuntu 18.04

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

sudo apt-get remove screenfetch

Uninstall screenfetch And Its Dependencies

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

sudo apt-get -y autoremove screenfetch

Remove screenfetch Configurations and Data

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

sudo apt-get -y purge screenfetch

Remove screenfetch configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge screenfetch

References

Summary

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