How To Install local-apt-repository on Kali Linux
Introduction
In this tutorial we learn how to install local-apt-repository on Kali Linux.
What is local-apt-repository
local-apt-repository is:
With this package installed, every Debian package (i.e. a *.deb file) dropped into /srv/local-apt-repository (which you need to create first) will be available to apt.
This package does not provide an apt repository to be used by other hosts. For that, look at more serious repository solutions like reprepro and apt-ftparchive.
There are three methods to install local-apt-repository 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 local-apt-repository Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install local-apt-repository using apt-get by running the following command:
sudo apt-get -y install local-apt-repositoryInstall local-apt-repository Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install local-apt-repository using apt by running the following command:
sudo apt -y install local-apt-repositoryInstall local-apt-repository 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 updateAfter updating apt database, We can install local-apt-repository using aptitude by running the following command:
sudo aptitude -y install local-apt-repositoryHow To Uninstall local-apt-repository on Kali Linux
To uninstall only the local-apt-repository package we can use the following command:
sudo apt-get remove local-apt-repositoryUninstall local-apt-repository And Its Dependencies
To uninstall local-apt-repository and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove local-apt-repositoryRemove local-apt-repository Configurations and Data
To remove local-apt-repository configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge local-apt-repositoryRemove local-apt-repository configuration, data, and all of its dependencies
We can use the following command to remove local-apt-repository configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge local-apt-repositoryDependencies
local-apt-repository have the following dependencies:
References
Summary
In this tutorial we learn how to install local-apt-repository package on Kali Linux using different package management tools: apt, apt-get and aptitude.