Update clean script
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
e715fb22eb
commit
95a438f8bd
1 changed files with 4 additions and 5 deletions
|
@ -17,12 +17,11 @@ print_section "Remove unneeded dependencies"
|
|||
mapfile -t UNNEEDED_DEPENDENCIES < <(yay -Qdtq)
|
||||
yay -Rsnu "${UNNEEDED_DEPENDENCIES[@]}"
|
||||
|
||||
print_section "Clear makepkg files"
|
||||
print_log "Deleting files in ${YELLOW}${XDG_DATA_HOME}/src/${RESET}"
|
||||
rm -rf "${XDG_DATA_HOME}/src/"*
|
||||
print_section "Cleaning files in ${YELLOW}/var/cache/pacman/pkg/${RESET}"
|
||||
paccache -rk 1 -c "/var/cache/pacman/pkg/"
|
||||
|
||||
print_section "Clean yay cache"
|
||||
yay -Sc
|
||||
print_section "Cleaning files in ${YELLOW}${XDG_DATA_HOME}/pkg/${RESET}"
|
||||
paccache -rk 1 -c "${XDG_DATA_HOME}/pkg"
|
||||
|
||||
print_section "Clean composer cache"
|
||||
composer clearcache
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue