![clean space on pc clean space on pc](https://www.howtogeek.com/wp-content/uploads/2012/10/image49.png)
Removing the old kernels is the same as removing any other package. List all installed Linux kernels first: sudo dpkg -list 'linux-image*' So, if you manually installed a Linux kernel, perhaps you can manually uninstall it as well. But removing old, unused Linux kernels will still save you plenty of space. But it won’t work if you manually installed the kernel in Ubuntu. The command discussed in the point 1 removes old Linux kernel. Remove old Linux kernels that were manually installed The script removed the older Snap packages and freed over half of the 5 GB space used by Snap. Give it execute permission, run the shell script with sudo and see the magic. Snap remove "$snapname" -revision="$revision" What you have to do here is to create a new shell script and use the following lines in your script: #!/bin/bash
![clean space on pc clean space on pc](http://studioinfinity.org/wp-content/uploads/2018/03/20171103_145510-e1522811565576.jpg)
du -h /var/lib/snapd/snapsĪlan Pope, part of Snapcraft team at Canonical, has created a small script that you can use and run to clean all the older versions of your snap apps. On top of that, Snap stores at least two older versions of the application (in case, you want to go back to the older version). You probably already know that Snap packages are bigger in size. Remove older versions of Snap applications When you are almost out of space, this 500 Mb can make a lot of difference.ĥ. You can see the size of this cache with the du command below: sudo du -sh /var/cache/aptĪs you can see, I have over 500 Mb of cache storage. Over time, this cache can grow quite large and hold a lot of packages you don’t need. The APT package management system keeps a cache of DEB packages in /var/cache/apt/archives.
CLEAN SPACE ON PC SOFTWARE
Ubuntu uses APT (Advanced Package Tool) for installing, removing and managing software on the system, and in doing so it keeps a cache of previously downloaded and installed packages even after they’ve been uninstalled. You can remove a program in Ubuntu from the software centre or using the command below with particular app name: sudo apt-get remove package-name1 package-name2 3. Clean up APT cache in Ubuntu If you need space more getting rid of the unused or lesser used applications is always a good idea. Maybe you installed them on the back of an awesome review, out of nosiness, or to handle a particular task.
![clean space on pc clean space on pc](https://i.ytimg.com/vi/_GUBl59wo5Q/maxresdefault.jpg)
You can find installed apps in Software CenterĬhances are that you have a number of apps installed that you seldom use.
CLEAN SPACE ON PC FREE
You should see the disk space used and the free space remaining in here: It’s always a good idea to check the free disk space in Linux first.
CLEAN SPACE ON PC HOW TO
I’ll also share some advanced tricks so that you’ll have choice.īut before that, let’s see how to find the free space remaining on Ubuntu. In this article, I’ll show you some of the easiest tricks to clean up your Ubuntu system and get more space. But if your hard disk has limited space, like I have a 128 GB SSD laptop, freeing up disk space becomes a necessity. If you have like a TB of storage capacity, you might not bother to clean up Ubuntu to make some disk space. Over time, any operating system can become cluttered as programs are added and removed. Brief: Running out of space on your Linux system? Here are several ways you can clean up your system to free up space on Ubuntu and other Ubuntu based Linux distributions.