Update Kali Linux
Update Kali Linux:- If you have a persistent installation of Kali Linux, it’s sensible to ensure all software is upto- date. Simply proceed with the following four steps, entering each command into a Terminal window (note, you will need an Internet connection for this to work).
1) Download the package lists from repositories and update them to get information on the newest versions of packages and their dependencies:
apt-get update
2) Update installed software packages. Note the -y option so that you don’t have to keep entering yes.
apt-get upgrade -y
3) Upgrade and remove obsolete packages if necessary:
apt-get dist-upgrade -y
4) Reboot the machine:
reboot
Use a Shell Script to Update Kali Linux :-
As a side-note, if you are familiar with shell scripting, a good way to regularly update Kali is to run a shell scrip which automatically runs these four commands. For example, open a Terminal window and enter the following command to create a new text file and open it into a text editor called Leafpad:
leafpad kaliupdates.sh
Type the following single line of text into the file:-
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && reboot
Save and close the file. Change file access permissions to enable the file to be executed:
chmod +x kaliupdates.sh
Execute the script, this will cause the commands to be executed in sequence and finally reboot the machine.
./kaliupdates.sh
Next time, to execute the script, only the last command needs to be entered.
Error – Something has gone wrong
All going well, your USB memory stick with persistence, will bootup without errors and work well. If however, you boot up and the final graphical display fails, and provides you with a rather unhelpful message such as “Oh no! Something has gone wrong” (yes, really this is a genuine message), do not despair. It may be that the update/upgrade routine did not fully complete. If you boot up and get the error message, although the screen just looks a light gray color and has no buttons, you may still be able to open a virtual terminal, enabling you to make command line entries. To try this, simply press the following combination of keys:
Ctrl+Alt+F4
If this opens a terminal window, you need to login as root user. Enter ‘root’ for the username, and ‘toor’ for the password. Now, simply repeat the update routine mentioned in the previous section:
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
reboot
All going well, your machine will now function correctly and have ‘persistence’.
I hope that you understand my post. if you like this post then share my post, and comment on my post if you have any suggestion or Queries related to Update Kali Linux. Thank you!