
You can view the file by executing the command below: bash grep -v '' /etc/apt/sources. When you install Kali Linux for the first time, you should see the following default repositories in the sources.list file. Do share it on your social media and subscribe to our YouTube channel. These repositories are found in the sources.list file in the /etc/apt directory. I hope you liked the article, let us know your thoughts on this in the comments section below. For a step-by-step video guide, watch this tutorial This will update the whole system and make you up-to-date. Adding sources.list file directly to add repositories on Kali LinuxĪlternatively, you can download the above file and add it to the system directly at this given PATH: PATH: /etc/apt/Īfter adding the file, simply execute the update & upgrade commands. So, updating your system is something you will often have to do. The above command is very useful as Kali Linux now comes with the rolling-release. This will take some time and will update the Kali Linux with the latest packages and applications update. For this run the given commands in the terminal.

Now you need to update your system with the added repositories. To save the file, use Ctrl + Oand close the editor using Ctrl + X. Open the repo file and add the above links in it. # deb-src kali-rolling main non-free contrib # For source package access, uncomment following line by removing '#' Make sure they match completely with the official links. You can also copy the below repositories and paste into the sources.list file.

Just head on to the official website of Kali Linux. To get the latest and official repository links for Kali Linux.
#KALI LINUX SOURCES.LIST HOW TO#
So in this, you will learn how to add these repositories on Kali Linx Getting the official repository links You often use the option to add the repositories later as it makes the installation easier. Kali Linux, best known for hacking and penetration testing. In this quick guide, you will learn how to add the official repositories to your Kali Linux distribution.
