# Clean the cache and manteniance

**URL:** https://forum.maboxlinux.org/t/clean-the-cache-and-manteniance/1674
**Category:** Basic Help & Support
**Created:** [April 28, 2024, 11:40pm UTC](https://forum.maboxlinux.org/t/clean-the-cache-and-manteniance/1674 "2024-04-28T23:40:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [April 28, 2024, 11:40pm UTC](https://forum.maboxlinux.org/t/clean-the-cache-and-manteniance/1674/1 "2024-04-28T23:40:23Z")

</div>

Hi, everyone.  
I’m trying to clean pacman cache but Terminator said that it no recognize the order.  
Am I doing it correctly?

```auto
claudio@Claudio-Mabox ~ $ paccache
bash: paccache: orden no encontrada
claudio@Claudio-Mabox ~ $ 

```

I’m looking for commands to mantein my Mabox clean.  
For example, this is my /home/claudio/.cache folder Should I keep all of this or can I delete it?

 ![Mabox_20240428-20-30-35](https://forum.maboxlinux.org/uploads/default/original/2X/b/be2cb9ccc5cd29c19e939cc651b503fb26883a31.webp)  
And what about tmp folder?  
 ![Mabox_20240428-20-33-54](https://forum.maboxlinux.org/uploads/default/original/2X/f/f0165c6783f33912dafba4d3b34f957d8a5844a7.webp)  
Is there anything else I should look at and clean regularly, is this necessary, should I not pay attention to it? I don’t want to install programs for maintenance, I would like to do it directly via terminal but I don’t know what I can do and what I can’t. I have already deleted dependencies that I should not have deleted and had to reinstall. The good thing is that I learned from that mistake and I haven’t made it again.  
There is a bot in Telegram what have Manjaro commands, till now I’m using it.

---

<div class="post-metadata">

### Author: ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)
#### Post date: [April 30, 2024, 9:18am UTC](https://forum.maboxlinux.org/t/clean-the-cache-and-manteniance/1674/2 "2024-04-30T09:18:17Z")

</div>

## pacman cache

**paccache** command is part of **pacman-contrib** package. Install it if you like.

Or use **yay** to manage packages cache…

```bash
# to see some statistics
yay -Ps
# to clear packages cache
yay -Sc

```

## ~/.cache directory

Usually, it contains files needed by some programs to operate faster, like web browser cache. I would recommend Qdirstat to investigate what is inside and eventually delete some files from here (At your own risk).

> [@Openbox good companions - lesser known apps](https://forum.maboxlinux.org/t/openbox-good-companions-lesser-known-apps/63/16):
>
> A new and improved version of QDirstat (1.9) is available from Mabox repo. QDirStat is a graphical application to show where your disk space has gone and to help you to clean it up. I use it sometimes and it is very useful. Installation: yay -S qdirstat

## /tmp directory

is used to store the data used by the system and user applications to store the data that are needed for a short period of time.

It is managed by the system and cleared after each reboot.  
Better do not touch by yourself 🙂

* * *

Also take a look at this thread…

> [@How do you clean up the system?](https://forum.maboxlinux.org/t/how-do-you-clean-up-the-system/1658/2):
>
> Packages cache I clear the package cache every now and then. To see some statistics about packages and cache: yay -Ps Then to clear cache: yay -Sc Logs To see disk usage: journalctl --disk-usage Archived and active journals take up 667.8M in the file system. And to delete part of logs (for example): journalctl --vacuum-size=200M Home directory Also I use qdirstat to see statistics and clean my home directory → [https://github.com/shundhammer/qdirstat](https://github.com/shundhammer/qdirstat)

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [May 1, 2024, 12:07am UTC](https://forum.maboxlinux.org/t/clean-the-cache-and-manteniance/1674/3 "2024-05-01T00:07:28Z")

</div>

Thanks, @napcok.  
I’m going to use Yay, I like it better than pacman and pamac, there I was looking at the “man” in Terminator, and I’m going to read the thread you recommend.  
I tried pacman because it was the only information I had at hand.

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [May 1, 2024, 12:34am UTC](https://forum.maboxlinux.org/t/clean-the-cache-and-manteniance/1674/4 "2024-05-01T00:34:24Z")

</div>

Using QDirstat is going to take me a while to learn, I don’t quite understand how it works. I’ll get there.  
Thank you very much.
