In this quick guide, you will learn how to add the official repositories to your Kali Linux distribution. So let’s get started.

Kali Linux, best known for hacking and penetration testing. When you install it on your system. You often use the option to add the repositories later as it makes the installation easier. So in this, you will learn how to add these repositories on Kali Linx

Getting the official repository links

To get the latest and official repository links for Kali Linux. Just head on to the official website of Kali Linux. Use the given below link.

Official repositories

You can also copy the below repositories and paste into the sources.list file. Make sure they match completely with the official links.

deb http://http.kali.org/kali kali-rolling main non-free contrib
# For source package access, uncomment following line by removing '#'
# deb-src http://http.kali.org/kali kali-rolling main non-free contrib

Open the repo file and add the above links in it. To save the file, use Ctrl + O and close the editor using Ctrl + X.

nano /etc/apt/sources.list

Now you need to update your system with the added repositories. For this run the given commands in the terminal.

apt-get update && apt-get upgrade

This will take some time and will update the Kali Linux with the latest packages and applications update.

The above command is very useful as Kali Linux now comes with the rolling-release. So, updating your system is something you will often have to do.

Adding sources.list file directly to add repositories on Kali Linux

Download Repositories File

Alternatively, you can download the above file and add it to the system directly at this given PATH:

PATH: /etc/apt/

After adding the file, simply execute the update && upgrade commands. This will update the whole system and make you up-to-date.

For a step-by-step video guide, watch this tutorial

I hope you liked the article, let us know your thoughts on this in the comments section below. Do share it on your social media and subscribe to our YouTube channel. Till then keep enjoying Linux.