Installing Kali Linux tools on Ubuntu

 


Hello guys, in this chapter we are going to learn how to install the Kali Linux tools that we want by adding the corresponding repositories. I have read a lot about all that about installing Kali Linux tools in Ubuntu specifically, since in other distributions that use other package managers, other techniques are usually used if they want to call it that, I have noticed that in all the posts that I have arrived to read they mention and emphasize that it is a complex task when it is completely the opposite, as we will see below.
 
The first thing we must do is add the Kali Linux repositories to our official list of repositories that should be found in the following path, or at least in the Ubuntu distribution: /etc/apt/source.list

But let's not rush so much, since after having added the Kali Linux repositories to the Ubuntu list we must download the signing key and sign or seal the repository or whatever they want to call it. Once that is done we will proceed to show all the steps one by one as we will see below:

The first step is to add the Kali Linux repositories and it can be done in the following way:

  • sudo sh -c "echo 'deb https://http.kali.org/kali kali-rolling main non-free contrib'> /etc/apt/sources.list.d/kali.list"
  • sudo apt-get update -y

Important! update packages after adding the repositories to our "repos" list with the following command:
 
apt-get update -y
 
After doing this we proceed to install the gnupg key installer which can be installed by executing the following command in our command terminal:
 
sudo apt-get install gnupg -y
 
Once this is done, we will continue with the repository signature to be able to install all the packages without any problems, but before that we have to execute some commands for the correct configuration of the packages and the repository itself.
 
We can do the aforementioned with the following commands at the systems level, let's proceed to do it once and for all and try not to send everything to hell. :)

We can do the aforementioned with the following commands at the systems level, let's proceed to do it once and for all and try not to send everything to hell. :)

Steps we will do:

  1. Download the keys necessary for signing the repository.
  2. Add the corresponding key.
  3. We add the Kali Linux repositories to our own unique file so that there are no confusion with any other repository on our system.
  4. We update the packages and we will already have the Kali repositories installed in Ubuntu and we can test it by installing a package as we can see in the image below:

  • wget 'https://archive.kali.org/archive-key.asc'
  • sudo apt-key add archive-key.asc
  • sudo apt-get update -y
  • sudo sh -c "echo 'Package: *'> / etc / apt / preferences.d / kali.pref; echo 'Pin: release a = kali-rolling' >> / etc / apt / preferences.d / kali.pref ; echo 'Pin-Priority: 50' >> / etc / apt / preferences.d / kali.pref "
  • sudo apt-get update -y
 

And this would be all, I hope it has helped you and that you enjoy the tutorial that as I mentioned before was quite easy. Enjoy the content.


Comments here, cracks!

Post a Comment

Comments here, cracks!

Post a Comment (0)

Previous Post Next Post