Monday, 31 March 2014

Kali Linux Repositories

Hi Everyone! this is an updated post on Kali Linux repositories. Well, a repository is an archival source from where Kali Linux softwares are updated and upgraded online. sources.list is the file where all the links for necessary update are saved. When we execute a command apt-get update, it searches for the updated package online. Un-wanted or un-necessary links can cause failure of Kali Linux package installation, so make sure what link/s should be added to the repository so that Kali Linux should get proper update. 

Kali Linux distribution has three repositories, which are mirrored world-wide: (mirrorlist): the main package repository; (mirrorlist): the security package repository; (mirrorlist): the repository with ISO images.

On a clean installation, Kali Linux, have the following two entries present in /etc/apt/sources.list:

deb kali main non-free contrib
deb kali/updates main contrib non-free
These are called Regular repositories from where Kali Linux get its update. In case, you require additional package, then your can add valid package source. You might also want to add the following repositories as well. These are Sources repositories:

deb-src kali main non-free contrib
deb-src kali/updates main contrib non-free

Finally, do not forget to do an update Kali Linux on terminal by typing apt-get update && apt-get upgrade && apt-get dist-upgrade.

Suggestion from Mr. Phong Do. Mr. Phong Do, made a change by just replacing "http:" with "deb" and found update is much faster. Hi all, please check and update me in comments so that I can update the post accordingly. THANKS.

just change http to repo like this:
deb kali main non-free contrib