Ways to Uninstall or Install stow on Ubuntu 22.04

Updated: September 8, 2022

GNU Stow is a software installation manager for /usr/local. Using symbolic links, GNU Stow helps you keep the installations separate (/usr/local/stow/emacs vs. /usr/local/stow/perl, for example) while maintaining the illusion that they are all under /usr/local. I will show you how to install stow on Ubuntu 22.04 in this guide.

Requirements

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install stow on Ubuntu 22.04

Install stow Ubuntu 22.04

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

Install stow using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these instructions to install stow on your Ubuntu.

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-get update

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

sudo apt-get -y install stow

Install stow using Aptitude

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

sudo apt-get -y install aptitude

After installing aptitude, you can now install stow, just following these steps:

Step 1: You must update the APT package repository cache before attempting 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 update

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

sudo aptitude install stow

Uninstall stow on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a stow, can be easily uninstalled by anyone.

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

sudo apt remove --auto-remove stow

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

sudo apt autoremove --purge stow

Ending

In this guide, I showed you ways to install stow on Ubuntu 22.04 and ways to uninstall stow too. Please contact me if you require any assistance. I’d be delighted to respond.