How To Install dpkg-repack on Kali Linux
Introduction
In this tutorial we learn how to install dpkg-repack
on Kali Linux.
What is dpkg-repack
dpkg-repack is:
dpkg-repack creates a .deb file out of a package that has already been installed. If any changes have been made to the package while it was unpacked (i.e. files in /etc were modified), the new package will inherit the changes.
This utility can make it easy to copy packages from one computer to another, or to recreate packages that are installed on your system, but no longer available elsewhere, or to store the current state of a package before you upgrade it.
There are three methods to install dpkg-repack
on Kali Linux. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install dpkg-repack Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install dpkg-repack
using apt-get
by running the following command:
sudo apt-get -y install dpkg-repack
Install dpkg-repack Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dpkg-repack
using apt
by running the following command:
sudo apt -y install dpkg-repack
Install dpkg-repack Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install dpkg-repack
using aptitude
by running the following command:
sudo aptitude -y install dpkg-repack
How To Uninstall dpkg-repack on Kali Linux
To uninstall only the dpkg-repack
package we can use the following command:
sudo apt-get remove dpkg-repack
Uninstall dpkg-repack And Its Dependencies
To uninstall dpkg-repack
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove dpkg-repack
Remove dpkg-repack Configurations and Data
To remove dpkg-repack
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge dpkg-repack
Remove dpkg-repack configuration, data, and all of its dependencies
We can use the following command to remove dpkg-repack
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dpkg-repack
Dependencies
dpkg-repack have the following dependencies:
References
Summary
In this tutorial we learn how to install dpkg-repack
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.