2023-02-23 18:27:26 -08:00
|
|
|
|
|
|
|
#/bin/bash
|
2024-02-12 14:16:57 -08:00
|
|
|
# https://wiki.archlinux.org/title/Pacman
|
2023-02-23 18:27:26 -08:00
|
|
|
alias pm="pacman"
|
|
|
|
alias pms="sudo pacman"
|
|
|
|
alias pmi="sudo pacman -S --needed"
|
|
|
|
alias pmr="sudo pacman -Rs"
|
2023-02-23 10:23:19 -08:00
|
|
|
alias pmua="sudo pacman -Syu"
|
2023-02-23 18:27:26 -08:00
|
|
|
alias pms="pacman -Ss"
|
2023-12-14 17:29:19 -08:00
|
|
|
alias pml="pacman -Qe"
|
|
|
|
alias pmlg="pacman -Qe | grep"
|
|
|
|
# https://unix.stackexchange.com/a/409903/201387
|
|
|
|
alias pmlf="comm -23 <(pacman -Qqett | sort | uniq) <(pacman -Qqg base-devel | sort | uniq)"
|
2023-02-23 18:27:26 -08:00
|
|
|
alias pkgst="pacman -Qi"
|
|
|
|
alias pkgi="pacman -Si"
|
|
|
|
|
2024-02-12 14:16:57 -08:00
|
|
|
|
|
|
|
|
2023-02-23 18:27:26 -08:00
|
|
|
pmig () {
|
|
|
|
pacman -Q | grep $1 | cut -d ' ' -f 1
|
|
|
|
}
|
|
|
|
|
|
|
|
pmrg () {
|
|
|
|
pacman -Ssq | grep $1
|
|
|
|
}
|
|
|
|
|
|
|
|
pmnig () {
|
|
|
|
local installed="|$(pmig $1 | tr '\n' '|')"
|
|
|
|
echo $installed
|
|
|
|
pmrg $1 | grep -E -v \'${installed}\'
|
|
|
|
}
|
|
|
|
|
|
|
|
pmnigv () {
|
|
|
|
pacman -Ss $1 | grep -v "$(pacman -Ss $1 | grep "\[installed\]" -A1 )" | grep -v "\[installed\]"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|