Introduction
In this tutorial we learn how to install atool
on Ubuntu 22.04.
What is atool
atool is:
atool is a script for managing file archives of various types (tar,
tar+gzip, zip etc). The main command is probably aunpack,
extracting files from an archive. It overcomes the dreaded “multiple
files in archive root†problem by first extracting to a unique
subdirectory, and then moving back the files if possible. aunpack
also prevents local files from being overwritten by mistake.
Other commands provided are apack (create archives), als (list files
in archives), and acat (extract files to standard out).
There are three methods to install atool
on Ubuntu 22.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 atool Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install atool
using apt-get
by running the following command:
sudo apt-get -y install atool
Install atool Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install atool
using apt
by running the following command:
sudo apt -y install atool
Install atool 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 atool
using aptitude
by running the following command:
sudo aptitude -y install atool
How To Uninstall atool on Ubuntu 22.04
To uninstall only the atool
package we can use the following command:
sudo apt-get remove atool
Uninstall atool And Its Dependencies
To uninstall atool
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove atool
Remove atool Configurations and Data
To remove atool
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge atool
Remove atool configuration, data, and all of its dependencies
We can use the following command to remove atool
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge atool
References
Summary
In this tutorial we learn how to install atool
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.