Ways to Uninstall and Install snarf on Ubuntu 22.04

Updated: September 22, 2022

Snarf is a utility to retrieve files via the http and ftp protocols. It supports http redirect, http and ftp resume, http and ftp authentication, and other neat things. Its functionality is similar to that of wget, but with a much smaller binary. I will show you how to install snarf on Ubuntu 22.04 in this tutorial.

Prerequisites

  • Operating system: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install snarf on Ubuntu 22.04

Install snarf Ubuntu 22.04

snarf 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 snarf using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install snarf on your Ubuntu 22.04.

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 download new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install snarf Ubuntu by executing this command in the terminal.

sudo apt -y install snarf

Install snarf using Aptitude

If you haven’t already installed Aptitude on Ubuntu, run this command to do so.

sudo apt-get install aptitude

After that, you can now install snarf 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. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install snarf Ubuntu by executing this command in the terminal.

sudo aptitude -y install snarf

Uninstall snarf 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 snarf.

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

sudo apt remove --auto-remove snarf

You can also execute this command if you want to uninstall snarf and remove its data and dependencies:

sudo apt autoremove --purge snarf

Conclusion

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