Upload files to "/"
This commit is contained in:
commit
d6a47370d7
151 changed files with 10154 additions and 0 deletions
37
usr/share/ezarcher/Docs/auto-cache-clean.txt
Normal file
37
usr/share/ezarcher/Docs/auto-cache-clean.txt
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
Managing the package cache
|
||||
|
||||
check how many cached packages are available in my cache folder.
|
||||
$ sudo ls /var/cache/pacman/pkg/ | wc -l
|
||||
|
||||
|
||||
check the total disk space used by the cache folder.
|
||||
$ du -sh /var/cache/pacman/pkg/
|
||||
|
||||
|
||||
Automatically clean the package cache using pacman hooks.
|
||||
|
||||
To do so, create a file /etc/pacman.d/hooks/clean_package_cache.hook:
|
||||
|
||||
$ sudo mkdir /etc/pacman.d/hooks
|
||||
$ sudo nano /etc/pacman.d/hooks/clean_package_cache.hook
|
||||
|
||||
Add the following lines:
|
||||
|
||||
[Trigger]
|
||||
Operation = Upgrade
|
||||
Operation = Install
|
||||
Operation = Remove
|
||||
Type = Package
|
||||
Target = *
|
||||
[Action]
|
||||
Description = Cleaning pacman cache...
|
||||
When = PostTransaction
|
||||
Exec = /usr/bin/paccache -rk 1
|
||||
|
||||
Save and close the file.
|
||||
|
||||
From now on, the package cache will be cleaned automatically after every pacman transactions (like upgrade, install, remove).
|
||||
You don’t have to run paccache command manually every time.
|
||||
|
||||
# Revision: 2022.04.22 -- by eznix (https://sourceforge.net/projects/ezarch/)
|
||||
# (GNU/General Public License version 3.0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue