Questions related removing temporary, unnecessary, redundant files or libraries; also the questions for cleaning the cache, logs, etc.
Questions tagged [cleanup]
167 questions
769
votes
40 answers
How do I remove old kernel versions to clean up the boot menu?
Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time.
I know I can manually search through the installed packages and remove them.
Does Ubuntu provide any easier way to clean them up or…
ImaginaryRobots
- 9,286
341
votes
5 answers
Big /var/log/journal?
I don't understand why the /var/log/journal/ folder is so big.
For example, by executing the command systemctl -f, i see the fill.
If I click on an email on Thunderbird, it generates dozens of lines that I consider useless.
Currently, I have more…
Bristow
- 3,460
149
votes
5 answers
var/cache/apt/archives occupying huge space
I am in the process of cleaning up my system. And I see a lot of space occupied by this folder /var/cache/apt/archives (1.5GB). Is it absolutely necessary to keep all these archives?
Vivek
- 3,829
118
votes
2 answers
What is the advantage of using sudo apt-get autoremove over a cleaner app?
I'm not sure what sudo apt-get autoremove does, but have read that you should use this command to remove any unnecessary packages.
One of the processes I saw was to use sudo apt-get autoremove and then use something like BleachBit to remove temp…
gman
- 2,324
64
votes
1 answer
clean, autoclean, and autoremove --- combining them is a good step?
Will it be logical by means of Debian oriented logic to unite the three commands apt-get clean and apt-get autoclean, and apt-get autoremove into one single command that does all of them?
55
votes
8 answers
What's the good way to clean up the system (and is Bleachbit safe) on Ubuntu 14.04?
I used Ubuntu 14.04 (Trusty Tahr) for about a year (actually upgraded it from Ubuntu 12.04 (Precise Pangolin)), and during the time I installed some packages, and removed some other packages.
Now I think it's probably time to clean up the system as…
tdao
- 1,025
55
votes
6 answers
How to clean /var/cache?
When I woke up this morning, I found my root had filled overnight
du -hx --max-depth=1 /
132M /boot
4.0K /media
16K /lost+found
16M /root
702M /lib
4.0K /OLDHOME
8.2G /usr
73M /etc
4.0K /srv
11M /sbin
4.0K …
avmohan
- 663
29
votes
2 answers
Reset MS Teams completely
I used Microsoft Teams (Linux) few months back with an organizational account. Now I want to use it with some other account. I'm currently in logged out state since I don't have access to the org account. Everytime I open, it takes me to the…
kl_divergence
- 393
26
votes
4 answers
Cleaning up my Home Directory
I have the following problem, I've installed a bunch of Ubuntu packages ever since I used Ubuntu, now I've removed these packages using the Synaptic Package Manager but somehow it still left hidden folders in my home directory for the specific…
Elitmiar
- 2,745
20
votes
5 answers
analyse disk space usage of an encrypted home directory
I'm having some problems with a full disk.
According to df -k I'm using 47 gb of data in my home folder and I have no idea where all of that data is hiding. I tried using the disk usage analyser aka baobab but since my home directory is encrypted I…
Akisame
- 3,343
14
votes
3 answers
Why does Ubuntu not clean out old kernel module files (in /lib/modules) when old kernels are removed?
Today, I noticed that the directory /lib/modules still have all the directories from previously installed kernels, thus:
$ ls /lib/modules
5.4.0-29-generic 5.4.0-31-generic 5.4.0-33-generic 5.4.0-37-generic 5.4.0-39-generic
5.4.0-40-generic …
Artur Meinild
- 31,035
13
votes
3 answers
How to clean caches in my homedir
My home directory is getting huge (100GB plus). When backupping it I notices that there are quite some caches there.
Which important caches are there in my homedir and how should I clean them?
One cache in particular is bothering me, the cache in…
Peter Smit
- 7,707
12
votes
1 answer
Can I delete /var/tmp/mkinitramfs-* files?
I notice that my /var/tmp folder has occupied by 9.3GB space on my Ubuntu 16.04.2. Particularly, there are a bunch of mkinitramfs_* folders taken most of the space in the tmp folder. I looked into them, and they seem to be the temporary files for…
Xiaodong Qi
- 2,562
12
votes
1 answer
Is there a usage count for packages or programs?
Motivation:
I want to remove applications I do not use to speed up my package processing tasks like dist upgrades, regular updates, but also for saving disk space and other reasons. I know this is a complex topic so first I will ask my question and…
math
- 1,498
11
votes
4 answers
Is there any application or command that cleans the memory like CCleaner in Windows?
After the system has been running for 8 hours continuously, it becomes slow. When I faced the same situation on Windows, I used CCleaner to clean memory, which used to give me a little boost.
Is there any application or command that cleans the…
mateen
- 657