39 lines
780 B
Plaintext
39 lines
780 B
Plaintext
|
|
#/bin/bash
|
|
# https://wiki.archlinux.org/title/Pacman
|
|
alias pm="pacman"
|
|
alias pms="sudo pacman"
|
|
alias pmi="sudo pacman -S --needed"
|
|
alias pmr="sudo pacman -Rs"
|
|
alias pmua="sudo pacman -Syu"
|
|
alias pms="pacman -Ss"
|
|
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)"
|
|
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\]"
|
|
}
|
|
|
|
|
|
|