8 Great Ways To Free Up Space On Ubuntu and Linux Mint

Over time, any software will become littered as programs square measure side and removed. If you’ve got sort of a TB of storage capability, you would possibly not trouble to wash up Ubuntu to form some disc space. however, if your fixed disk has restricted house like I even have a 128 GB SSD laptop computer, releasing up disc space becomes a necessity.

In this article, I’ll show you a number of the best tricks to wash up your Ubuntu system and find more room.
How to unencumber disc space in Ubuntu and UNIX system Mint

There are many ways that you shut down space in Ubuntu and different Ubuntu primarily based system. I actually have mentioned many command tricks here followed by some interface choices.

While I actually have mentioned many ways that here, if you’re a beginner, avoid those marked as ‘expert’. Not that you simply cannot use them, however, it’s higher to avoid if you don’t understand what you’re doing.

I am mistreatment Ubuntu sixteen.04 whereas putting this on ink tutorial however you’ll be able to use identical steps for different Ubuntu versions, Linux Mint, elementary OS and different Ubuntu-based UNIX distributions.

1. Clean the fingernail cache

Ubuntu mechanically creates a fingernail, for viewing within the file manager. It stores those thumbnails in a very hidden directory in your user account at the situation ~/.cache/thumbnails.

Over time, the quantity of thumbnails would increase dramatically. Moreover, the fingernail cache can eventually contain several superfluous thumbnails of images that don’t exist any longer.

You can check the dimensions of fingernail cache with the command below:

du -sh ~/.cache/thumbnails

For my system, the fingernail cache is over three hundred Mb in size.

So it’s decent to apply to clear the fingernail cache each few months around. The fastest manner is to use the terminal:

rm -rf ~/.cache/thumbnails/*

2. take away unparented packages [For Experts]

This step is best avoided if you’re a beginner. I’m not an acquaintance of this technique and that I advise you to avoid it.

First, let’s see what’s associate unparented package in Ubuntu.

Suppose you put in a package ‘myprogram’. however, this package encompasses a dependency on the library ‘mylib’. This lib is sometimes put in mechanically with ‘myprogram’. once you delete ‘myprogram’, mylib may still stay within the system. Thus mylib, in this case, becomes the associate unparented package.

Now, the command listed in purpose one removes such unparented packages. however, imagine the case wherever you had manually put in mylib before putting in my program. The command ‘apt autoremove’ may not take away the unparented package during this case. And thus you’ll get to manually delete it.

You’ll get to realize all the unparented packages initial and so take away them. Thankfully, we’ve got an interface tool to try and do that: gtkorphan, a graphical frontend for deborphan.

Install gtkorphan via the terminal:

sudo apt-get install gtkorphan

And to get rid of unparented packages, explore for Removed unparented Package tool and run it to seek out all the unparented packages in your system:

Honestly, I won’t opt for this feature unless you actually would like each Mb of free area.

 

3. Get obviate packages that aren’t any longer needed [Recommended]

If you scan the apt-get commands guide, you may have bumped into the apt-get command choice ‘autoremove’.

This option removes libs Associate in Nursing packages that were put in mechanically to satisfy the dependencies of an put in the package. If that package is removed, these mechanically put in packages are useless within the system.

It additionally removes previous UNIX kernels that were put in from mechanically within the system upgrade.

It’s a no-brainer command that you simply will run from time to time to create some free house on your Ubuntu system:

sudo apt-get autoremove

As you’ll be able to see, this command goes to liberate three hundred Mb of a free house in my system.

4. stop working APT cache in Ubuntu

Ubuntu uses APT (Advanced Package Tool) for putting in, removing and managing computer code on the system, and in doing thus it keeps a cache of antecedently downloaded and put in packages even once they’ve been uninstalled.

You can see the dimensions of this cache with the command below:

sudo du -sh /var/cache/apt

As you’ll be able to see, I actually have over five hundred Mb of cache storage. once you are virtually out of the area, this five hundred Mb will build lots of distinction.

Now, you’ve got 2 choices to handle the cache.

Either take away solely the obsolete packages, like those outmoded by a recent update, creating them utterly uncalled-for.

sudo apt-get autoclean

Or clean out the cache in its entireness (frees additional disk space):

sudo apt-get clean

 

5. victimization interface tools to free area in Ubuntu

We saw a variety of statement choices to form area in UNIX system, however, I perceive if you don’t wish to use the commands.

Remembering all the commands or victimization all one by one might not be convenient for you. And this can be why we’ve got a variety of interface tools that may assist you to do this in a very few clicks with a simple to use interface.

Stacer is one such tool that you just might use. you’ll be able to scan this text to understand a way to use Stacer in Ubuntu.
You can explore additional tools to wash up Ubuntu and build some free area simply.
Wrapping up

 

 

6. take away previous UNIX kernels that were manually put in [For Experts]

The command mentioned within the purpose one removes previous UNIX kernel. however, it won’t work if you manually put in the kernel in Ubuntu. however removing previous, unused UNIX kernels can still prevent many areas.

So, if you manually put in a UNIX kernel, maybe you’ll be able to manually uninstall it further.

List all put in UNIX kernels first:

sudo dpkg –list ‘linux-image*’

Removing the previous kernels is that the same as removing the other package. I’m victimization shell enlargement for the version numbers to avoid wasting writing. it’ll prompt you with an inventory of packages that may be removed, thus you’ll be able to countercheck the list before continuing.

Note: Replace VERSION with the version of the kernel you would like to get rid of.

sudo apt-get take away linux-image-VERSION

My recommendation is to stay a minimum of 2 or ideally 3 kernels as well as the newest. This way, you may have a minimum of one/two different kernels besides with, if for no matter reason the newest kernel you’re unable besides with.

7. Uninstalling uncalled-for applications [Recommended]

We all have a number of games and/or applications that we tend to hardly use. Don’t trust me? Go and realize put in computer code in Ubuntu system.

Chances are that you just have a variety of apps put in that you just rarely use. perhaps you put them on the rear of associate awing review, out of curiousness, or to handle a specific task.

If you would like area additional obtaining to obviate the unused or lesser used applications is often a decent plan.

You can take away a program from the computer code center or victimization the command below with specific app name:

sudo apt-get take away package-name1 package-name2

 

8. realize and take away duplicate files

Sometimes you’ll have duplicate files in numerous places in your system. obtaining obviate the duplicates will definitely unlock some area and clean your Ubuntu system.

You can use an interface tool like FSlint or a statement tool like FDUPES for this task. I like to recommend reading this text to envision a way to use these tools to get rid of duplicate files.

 

So, you saw a variety of how to wash up Ubuntu system. Personally, I exploit apt-get autoremove additional usually than the other commands here. often victimization this command keeps the system free from uncalled-for files.

I hope this text helped you to form free area in Ubuntu, UNIX Mint, and different such distributions. Do let Pine Tree State apprehend if this worked for you or if you’ve got another tip to share.

Tags:

Leave a Reply