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 :: symbolic link linux 
Shell :: kubectl describe to yaml 
Shell :: create group in linux command example 
Shell :: cli edit file 
Shell :: remove a file in ubuntu 
Shell :: cmd echo without newline 
Shell :: installing mutillidae in kali 
Shell :: remove write proteced in usb ubuntu 
Shell :: The file AppDataRoaming pmyarn.ps1 is not digitally signed. 
Shell :: bash: /usr/local/bin/firebase: Permission denied 
Shell :: linux cp 
Shell :: upload git repository to github 
Shell :: what is merge conflict in git 
Shell :: run shell script remotely using ssh 
Shell :: delete a deployment in kubernetes 
Shell :: awk if 
Shell :: how disabled cors in chrome 
Shell :: git recover deleted file 
Shell :: docker compose installation 
Shell :: react bootstrap 
Shell :: bash script change directory run a command 
Shell :: linux find directory and file 
Shell :: microphone auto adjusting ubuntu 
Shell :: pip for pyhton 3.8 
Shell :: copy file to another directory linux 
Shell :: flutter firebase apk release google sign in not working 
Shell :: install wordpress linux 
Shell :: shell script to enter a number and check the number is perfect number or not 
Shell :: Vim deleting all lines containing pattern 
Shell :: unable to start test validator. check .anchor/test-ledger/test-ledger-log.txt for errors. 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =