shell-host/distro/arch/pacman

33 lines
586 B
Plaintext

#/bin/bash
# echo 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 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\]"
}