Back to Blog
Ubuntu clean disk5/28/2023 ![]() You probably don’t need 10+ kernel versions if the default works when booting up. clean_snap.shĪ big thanks for the original source here: FlatpakĬleaning up Flatpak is pretty simple, just enter this command in the terminal to remove unused packages: flatpak uninstall -unused Old kernels Now all you need is to run it as root: sudo. Now make the file executable by issuing this command in the terminal: chmod +x clean_snap.sh Snap remove "$snapname" -revision="$revision" ![]() LANG=en_US.UTF-8 snap list -all | awk '/disabled/' | Open up a text editor like Gedit or whatever you like and save a file named clean_snap.sh with the following content: #!/bin/bash To remove old versions of Snap packages, first you need to create a script. To clean the Apt cache, copy these commands into the terminal: sudo apt update It is not enough to delete the Apt cache anymore, we have to take Snap and Flatpack into consideration too. I use Zorin OS 16, which installs software from multiple sources. After the install I will selectively copy everything I want to keep from /home/myuser-old to the newly created /home/myuser folder and delete the old folder when I do not need it anymore. During the install I mark my root partition for format but mount my home partition without the format option checked. With a separate home partition I usually just rename my home folder from /home/myuser to /home/myuser-old before booting from the pendrive.
0 Comments
Read More
Leave a Reply. |