How to Install and Uninstall feh on Ubuntu 22.04

Updated: August 27, 2022

feh is a fast, lightweight image viewer which uses imlib2. It is commandline-driven and supports multiple images through slideshows, thumbnail browsing or multiple windows, and montages or index prints (using TrueType fonts to display file info). Advanced features include fast dynamic zooming, progressive loading, loading via HTTP (with reload support for watching webcams), recursive file opening (slideshow of a directory hierarchy), and mouse wheel/keyboard control. In this tutorial, I will show you ways to install feh Ubuntu 22.04.

Software Requirement

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install feh on Ubuntu 22.04

Install feh Ubuntu 22.04

feh is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install feh using APT

This is a popular method for installing any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install feh on your Ubuntu 22.04.

Step 1: Update the APT database to fetch new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. You can now install feh Ubuntu by executing this command in the terminal.

sudo apt -y install feh

Install feh using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. You must run this command to install it if you haven’t already done so on Ubuntu.

sudo apt -y install aptitude

After that, you can now install feh by following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install feh Ubuntu by executing this command in the terminal.

sudo aptitude -y install feh

Uninstall feh on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a feh.

If you installed feh using APT or Aptitude, you could uninstall feh on Ubuntu by running this command

sudo apt remove --auto-remove feh

To uninstall feh and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge feh

Ending

In this tutorial, I showed you ways to install feh on Ubuntu 22.04 and some ways to uninstall feh too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.