Ways to Uninstall and Install chafa on Ubuntu 22.04

Updated: August 27, 2022

Chafa is a command-line utility that converts all kinds of images, including animated image formats like GIFs, into ANSI/Unicode character output that can be displayed in a terminal. In this guide, I will show you how to install chafa on Ubuntu 22.04.

Requirements

  • OS: Ubuntu 22.04 is needed for chafa to work
  • Privileges: Check that you can run sudo commands.

Prerequisites to install chafa on Ubuntu 22.04

Install chafa Ubuntu 22.04

chafa is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one you believe is simple and easy to follow.

Install chafa 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 chafa on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can install chafa Ubuntu by pasting this command into the terminal and executing it.

sudo apt install chafa

Install chafa using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

Then, you can now install chafa by following these steps:

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

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating the system, you can install chafa Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install chafa

Install chafa from Ubuntu Software Center

The next option is to install chafa using Ubuntu Software Center because it contains a lot of packages that are simple to install for those using Ubuntu 22.04 or earlier Ubuntu versions. Simply taking these actions to start the installation:

Step 1: Opening the Ubuntu Software Center

You must press the Super + A key combination. It will display the application menu, where you can view and search for installed applications on your system. You need to search for Ubuntu Software and open it.

Step 2: Search for chafa on Ubuntu Software

After Ubuntu Software Center appears, you need to search for chafa by typing its name into the search box and the results will appear. After that, you can install chafa by clicking the Install button.

Install chafa from Software Center on Ubuntu 22.04

Install chafa using Snap

Software is delivered to users using self-contained packages known as snaps using the software package and deployment system called Snap. As a result, Snap enables you to install chafa easily. Simply copying and pasting this command into the terminal to run it.

sudo snap install chafa --candidate

Uninstall chafa on Ubuntu 22.04

Have you ever thought about how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone can easily uninstall any program, not just a package.

You can uninstall chafa on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove chafa

If you want to uninstall chafa and delete its data and dependencies, you can also run the following command:

sudo apt autoremove --purge chafa

If you installed chafa using Snap, you could follow this step:

sudo snap remove chafa

Conclusion

In this tutorial, I showed you ways to install chafa on Ubuntu 22.04 and some ways to uninstall chafa too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.