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)
|
mapfile -t UNNEEDED_DEPENDENCIES < <(yay -Qdtq)
|
||||||
yay -Rsnu "${UNNEEDED_DEPENDENCIES[@]}"
|
yay -Rsnu "${UNNEEDED_DEPENDENCIES[@]}"
|
||||||
|
|
||||||
print_section "Clear makepkg files"
|
print_section "Cleaning files in ${YELLOW}/var/cache/pacman/pkg/${RESET}"
|
||||||
print_log "Deleting files in ${YELLOW}${XDG_DATA_HOME}/src/${RESET}"
|
paccache -rk 1 -c "/var/cache/pacman/pkg/"
|
||||||
rm -rf "${XDG_DATA_HOME}/src/"*
|
|
||||||
|
|
||||||
print_section "Clean yay cache"
|
print_section "Cleaning files in ${YELLOW}${XDG_DATA_HOME}/pkg/${RESET}"
|
||||||
yay -Sc
|
paccache -rk 1 -c "${XDG_DATA_HOME}/pkg"
|
||||||
|
|
||||||
print_section "Clean composer cache"
|
print_section "Clean composer cache"
|
||||||
composer clearcache
|
composer clearcache
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue