DEV Community

pabli44
pabli44

Posted on

Ubuntu Updated!!

Want to keep Ubuntu updated?

Run these commands on your PC via terminal, or create a .sh file and add the following commands:

Bash
sudo apt update &&
sudo apt full-upgrade -y &&
sudo apt autoremove --purge -y &&
sudo du -sh /var/cache/apt/archives &&
sudo apt clean

If you don't know how to create the .sh file, no problem! Just navigate to the folder in your terminal and run the following:

touch file.sh ----> creates the file
nano file.sh -----> opens the file in the terminal

Finally, add the previous commands to the file, press CTRL + X. This will ask if you want to save the changes; press Y.

How do you run it? Go to the folder where the file is located and run: sh file.sh


You know, enjoy learning!!

Top comments (0)