上QQ阅读APP看书,第一时间看更新
How to do it...
Kali Linux should be ready and configured after installation, but we should check anyway. Kali uses a package manager called apt-get.
- The first thing we want to do is check the sources apt-get will use to look for updates. Navigate to the /etc/apt/ directory; there you should see a file named sources.list. If the file doesn’t exist, it's okay; we will create it.
- Run the following command from the Terminal. If the file exists, it will open; if not, it will create it:
- Now, let's add the following sources to the file if they don’t already exist. Make sure that you do not add any additional sources as they may break your Kali installation:
deb http://http.kali.org/kali kali-rolling main non-free contrib
- Your file should look like the following:
- Once the file matches what we previously stated, save and close it. Now we will run a few commands. These commands should be run periodically to keep your system updated. The -y flag appended to apt-get upgrade and apt-get dist-upgrade tells the command to assume yes when prompted:
- It may take the commands a while to execute, so feel free to get your caffeine fix while you are waiting. Reboot Kali Linux, and the procedure is done. You will want to run the previous commands periodically to keep your system up to date.