![]() ![]() If this tutorial helped you free some space, let me know in the comment section. Snap’s default behavior now is to store total 2 versions for any package.Īltogether, if you are running out of space, getting rid of the additional package version could surely one of the ways to free up disk space on Ubuntu. This should let you re-use the disks for a different purpose. I think of it as CCleaner from windows only for linux. Depending on the actual ceph version (Luminous or newer) you should be able to wipe the OSDs with ceph-volume lvm zap -destroy /path/to/disk or use the LV syntax: ceph-volume lvm zap -destroy VG/LV. ![]() There is also the ability to use it to 'wipe' the free disk space. There are about 70 applications that it can recognize and wipe clean. You may see some forums advising to set up the Snap package retention value to 2. the basic idea is that it quickly frees up disk space and removes a lot of the junk that is hidden in the system. If you are not familiar with, we have a bash tutorial series for beginners for you. This all makes sense easily if you know a little bit about shell scripting. The while loop runs as long as there are rows found with ‘disabled’ string in it. These variables are then used to run the snap remove command to delete with the name of the span package name and its revision number. Read command gets the value of first column to snapname and third column to revision variable. This output is further passed to a combination of while and read command. Snap list -all | awk '/disabled/’ part looks for the string ‘disabled’ in each row and if it is found, it extracts the first column and third column. Basically, create a new file named clean-snap.sh and add the following lines to it. I hope you know how to create and run a bash shell script. Kindly note that this script may not work for French and some other languages because the label ‘disabled’ is likely to be different in different languages. There is sort of automatic way to do it thanks to a nifty bash script written by Alan Pope while he was working in the Snapcraft team. How do you know which one to delete? You can see that these older packages are labeled ‘disabled’.ĭon’t worry. Apart from that, we’ll also go over removing unused dependencies. We’ll make use of tools such as du and ncdu. ![]() First, we’ll see how to carry out the clean-up process manually. To free up disk space, you can delete the additional package versions. In this tutorial, we’ll discuss how we can clean a Linux system of unused files and directories to free up disk space. Snap keeps at least two versions of each package ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |