Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

remove cache package arch

# remove all cached versions of uninstalled packages
sudo paccache -ruk0

# remove all uninstalled packages
sudo pacman -Sc

# completely remove all packages from the cache
sudo pacman -Scc
Comment

automatically clean package cache in Arch Linux

# the package cache will be cleaned automatically after every pacman transactions (like upgrade, install, remove)
sudo mkdir /etc/pacman.d/hooks
sudo nano /etc/pacman.d/hooks/clean_package_cache.hook

# add
[Trigger]
Operation = Upgrade
Operation = Install
Operation = Remove
Type = Package
Target = *
[Action]
Description = Cleaning pacman cache...
When = PostTransaction
Exec = /usr/bin/paccache -r
Comment

PREVIOUS NEXT
Code Example
Shell :: powershell on linux 
Shell :: get repository url git cil 
Shell :: find command 
Shell :: install openvino 
Shell :: Add RPM Fusion Fedora 36 
Shell :: how to create a new file in kali linux 
Shell :: docker compose plugin 
Shell :: centos web panel install 
Shell :: gitignore tracked files 
Shell :: bash read file into variable 
Shell :: delete commit head 
Shell :: localhost run 
Shell :: uninstall package with pip 
Shell :: create empty branch git 
Shell :: tar.gz files 
Shell :: navigate to a directory linux 
Shell :: yum install package with version 
Shell :: use python as python3 zsh 
Shell :: check wordpress version cli 
Shell :: unable to connect my bluetooth devices to kali linux 
Shell :: install phantomjs 
Shell :: install appx package windows 
Shell :: ubuntu chrome 
Shell :: mac install sklearn 
Shell :: bash set ifs to space 
Shell :: aac anticheat 
Shell :: ts-node not found 
Shell :: gitignore all log files 
Shell :: shell script get branch name 
Shell :: helm repo list charts 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =