How To Install libarchive-tools on Debian 10
Introduction
In this tutorial we learn how to install libarchive-tools
on Debian 10.
What is libarchive-tools
libarchive-tools is:
This package contains several command-line tools based on the libarchive library.
The bsdtar program is the default system ’tar’ program used on FreeBSD. bsdtar uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats.
The bsdcpio program is the default system ‘cpio’ program used on FreeBSD. bsdcpio uses the libarchive library as a backend which does all of the work for reading and writing archives in various formats.
The bsdcat program reads archived data from files or from its standard input and uses the libarchive library to decompresses it to its standard output. It may be used for viewing the contents of archives or for passing it to other tools for further processing.
There are three methods to install libarchive-tools
on Debian 10. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libarchive-tools Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libarchive-tools
using apt-get
by running the following command:
sudo apt-get -y install libarchive-tools
Install libarchive-tools Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libarchive-tools
using apt
by running the following command:
sudo apt -y install libarchive-tools
Install libarchive-tools 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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libarchive-tools
using aptitude
by running the following command:
sudo aptitude -y install libarchive-tools
How To Uninstall libarchive-tools on Debian 10
To uninstall only the libarchive-tools
package we can use the following command:
sudo apt-get remove libarchive-tools
Uninstall libarchive-tools And Its Dependencies
To uninstall libarchive-tools
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove libarchive-tools
Remove libarchive-tools Configurations and Data
To remove libarchive-tools
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge libarchive-tools
Remove libarchive-tools configuration, data, and all of its dependencies
We can use the following command to remove libarchive-tools
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libarchive-tools
Dependencies
libarchive-tools have the following dependencies:
References
Summary
In this tutorial we learn how to install libarchive-tools
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.