Created
          March 29, 2025 04:02 
        
      - 
      
- 
        Save AD2011/5e7c47a1a9d1f64c8a455a901a495471 to your computer and use it in GitHub Desktop. 
    Kali Repo on any Linux Distro
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # Add repo to /etc/apt | |
| sudo sh -c "echo 'deb https://http.kali.org/kali kali-rolling main non-free contrib' > /etc/apt/sources.list.d/kali.list" | |
| # Set Kali repo priority lower than the distro's official repos. | |
| 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" | |
| # Install Kali repo keyring | |
| wget https://kali.download/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2024.1_all.deb | |
| sudo dpkg -i kali-archive-keyring_2024.1_all.deb | |
| sudo rm kali-archive-keyring_2024.1_all.deb | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment