pebcak
September 7, 2020, 10:31pm
41
Looking at man paccache
:
-k, --keep
Specify how many versions of each package are kept in the cache directory, default is 3.
I would interpret paccache -rk1
as only keeping one version of each package. The formulation in the Wiki looks “misleading” a bit. To me at least.
I run regularly paccache -rk 2
and I am left with two versions of each package in the cache. The latest one and the one before.
dalto
September 7, 2020, 10:37pm
43
bkaplan:
sudo pacman -Syyu
There is not much reason to use -Syy
or -Syyu
on Arch/EOS.
A single y
is sufficient. -Sy
or -Syu
The double y
was more common on Manjaro where changing branches and mirrors made it safer.
2 Likes
Thank You for the clarification. I’ve updated my bash history file.
1 Like
bkaplan
September 8, 2020, 12:11am
45
Thank you! I never knew this. I was taught “-Syyu” and that’s what I’ve used all these years!
1 Like
zoli62
September 8, 2020, 10:52pm
46
I usually often clear the entire package cache. I haven’t really needed a package downgrade yet.
cipolla
January 19, 2021, 11:47am
47
I’ve read this article
and I have cleaned the cache, I recovered some free space, but not so much.
is there something else that I could delete to recover free space? log files or something else?
thanks
manuel
January 19, 2021, 12:23pm
48
One nice little program to find places where disk has lots of data is: ncdu .
Then commands like
ncdu -q ~
ncdu -q /
might reveal those problem spots.
7 Likes
cipolla
January 19, 2021, 1:08pm
49
thanks
manuel:
ncdu -q ~
my home/.cache is really big
in your opinion is it safe to delete all the files in it?
manuel
January 19, 2021, 2:02pm
50
Yes. Usually browsers have lots of stuff there. But they will be regenerated if they need that.
1 Like
Sorry for the intrusion, what does it show you:
sudo paccache -d
?
cipolla
January 19, 2021, 2:17pm
52
now I have completely cleaned the pacman cache
with paccache -d I got:
no candidate packages found for pruning
1 Like
paccache -d indicates how many megs or gigs of cache you have on your system making it heavy to boot and reboot.
For a better explanation, the wiki: https://wiki.archlinux.org/index.php/Pacman#Cleaning_the_package_cache
1 Like
dalto
January 19, 2021, 2:32pm
56
As far as I know, having a large pacman cache shouldn’t effect the booting process. It just uses a lot of disk space if you keep a large number of older packages around. It can also cause you to run out of space if your root partition is on the smaller size.
2 Likes
I did this from the link above that @cipolla posted
[dad@archlinux ~]$ sudo ls /var/cache/pacman/pkg/ | wc -l
[sudo] password for dad:
674
Then i did
[dad@archlinux ~]$ du -sh /var/cache/pacman/pkg/
1.5G /var/cache/pacman/pkg/
I can safely remove 1.5G?
dalto
January 19, 2021, 2:34pm
58
It is safe to remove it but there is some value in keeping at least a couple of older package versions around. If something goes wrong with an update being able to rollback is sometimes useful in an emergency.
I would consider something like:
paccache -rk3
This keeps 3 versions of all your packages and deletes anything older. You can do less if you are tight on disk space.
3 Likes
No doubt about it, you are right, I meant that everything gets denser or heavier … badly explained on my part.
Thank you for clearing up my mistakes.
1 Like
Aaah yes, I’m not close to running out of space on this nvme, well not yet anyhow lol.