2023-02-23 18:27:26 -08:00
|
|
|
|
|
|
|
#/bin/bash
|
2023-02-23 10:23:19 -08:00
|
|
|
# echo 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"
|
|
|
|
alias pkgst="pacman -Qi"
|
|
|
|
alias pkgi="pacman -Si"
|
|
|
|
|
|
|
|
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\]"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|