You are not logged in.

#1 2023-02-07 19:28:46

barnd3
Member
Registered: 2023-02-07
Posts: 110

Pacman cache is not deleted

the Pacman cache is not deleted even though the "/var/cache/pacman/pkg" directory is full.

[andre@I-NET ~]$ sudo paccache -r
[sudo] Passwort für andre: 
==> no candidate packages found for pruning

Offline

#2 2023-02-07 19:38:02

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Pacman cache is not deleted

It keeps at least three versions of each package by default so if you have a very large number of packages and limited storage space for that directory it could still be full afterwards.

Can we see

df -h
du -h /var/cache/pacman/pkg
pacman -Q | wc -l

Offline

#3 2023-02-07 19:45:00

barnd3
Member
Registered: 2023-02-07
Posts: 110

Re: Pacman cache is not deleted

[andre@I-NET ~]$ df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
dev              16G       0   16G    0% /dev
run              16G    1,4M   16G    1% /run
/dev/sda2       457G     12G  422G    3% /
tmpfs            16G    8,3M   16G    1% /dev/shm
/dev/sda1       510M    111M  400M   22% /boot
tmpfs            16G    1,1M   16G    1% /tmp
/dev/sdc2       909G    2,0G  861G    1% /home
/dev/sdb1       1,9T    419G  1,5T   23% /run/media/andre/platte2
tmpfs           3,2G     76K  3,2G    1% /run/user/1000
/dev/sdd1        30G    1,2G   29G    4% /run/media/andre/USB_P
[andre@I-NET ~]$ du -h /var/cache/pacman/pkg
2,4G	/var/cache/pacman/pkg
[andre@I-NET ~]$ pacman -Q | wc -l
975

If the last 3 packets are kept, then it is clear that nothing will be deleted.
I thought that the directory is emptied with the command...

Offline

#4 2023-02-07 19:46:54

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,636

Re: Pacman cache is not deleted

See pacman -Sh for clearing it. No need for paccache for that.

Offline

#5 2023-02-07 19:48:20

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Pacman cache is not deleted

You really should read the man page before running commands. Obligatory XKCD link: https://xkcd.com/293/

EDIT: @Scimmia, I think that should be `pacman -Scc`. EDIT2: oh, I see what you mean. Disregard.

Last edited by Head_on_a_Stick (2023-02-07 20:12:03)

Offline

#6 2023-02-07 19:58:57

barnd3
Member
Registered: 2023-02-07
Posts: 110

Re: Pacman cache is not deleted

Head_on_a_Stick wrote:

You really should read the man page before running commands. Obligatory XKCD link: https://xkcd.com/293/

EDIT: @Scimmia, I think that should be `pacman -Scc`.

yes sorry
I'm a bit lazy to read...
Many thanks for the help

Offline

Board footer

Powered by FluxBB