Skip to content

Instantly share code, notes, and snippets.

@furaar
Created August 15, 2024 13:41
Show Gist options
  • Save furaar/05c0297ff12ae5d643f1bd2ecb2dc9e3 to your computer and use it in GitHub Desktop.
Save furaar/05c0297ff12ae5d643f1bd2ecb2dc9e3 to your computer and use it in GitHub Desktop.

πŸ”„ Convert Debian to Kali Linux

To convert a Debian system to Kali Linux, follow the steps below:

Step 1: πŸ› οΈ Update and Upgrade the System

sudo apt-get update -y && sudo apt-get full-upgrade -y && sudo apt-get dist-upgrade -y
sudo apt autoremove -y && sudo apt autoclean

This step ensures your system is fully updated and any unnecessary packages are removed.


Step 2: πŸ“¦ Install Required Packages

sudo apt-get install wget gnupg dirmngr

These packages are necessary for handling keys and downloading files securely.


Step 3: ⬇️ Download and Install Kali Archive Keyring

wget https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2024.1_all.deb
sudo dpkg -i kali-archive-keyring_2024.1_all.deb

This keyring is required to authenticate packages from the Kali Linux repository.


Step 4: βž• Add Kali Linux Repository to Sources List

echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" | sudo tee -a /etc/apt/sources.list

Adding the Kali repository allows your system to install Kali-specific packages.


Step 5: πŸ”„ Update and Upgrade the System Again

sudo apt-get update -y && sudo apt-get full-upgrade -y && sudo apt-get dist-upgrade -y
sudo apt autoremove -y && sudo apt autoclean

This ensures that your system is up to date with the latest packages from the Kali repository.


Step 6: πŸ”§ Install Kali Linux Core

sudo apt-get install kali-linux-core

Finally, this command installs the core packages of Kali Linux, converting your Debian system into a Kali Linux environment.

πŸ”§ Install Kali Linux Core

sudo apt-get update -y && sudo apt-get full-upgrade -y && sudo apt-get dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean
sudo apt-get install wget gnupg dirmngr
wget https://http.kali.org/pool/main/k/kali-archive-keyring/kali-archive-keyring_2024.1_all.deb
sudo dpkg -i kali-archive-keyring_2024.1_all.deb
sudo echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list
sudo apt-get update -y && sudo apt-get full-upgrade -y && sudo apt-get dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean
sudo apt-get install kali-linux-core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment