Update pacman

master
David Kebler 2023-02-23 18:27:26 -08:00
parent ef79f9623a
commit 8a6929b523
1 changed files with 30 additions and 8 deletions

View File

@ -1,10 +1,32 @@
#/bin/bash
# echo https://wiki.archlinux.org/title/Pacman # echo https://wiki.archlinux.org/title/Pacman
alias pm="sudo pacman" alias pm="pacman"
alias pmi="sudo pacman -S" alias pms="sudo pacman"
alias pmi="sudo pacman -Ssq" alias pmi="sudo pacman -S --needed"
alias pmr="sudo pacman -Rs package_name" alias pmr="sudo pacman -Rs"
alias pmua="sudo pacman -Syu" alias pmua="sudo pacman -Syu"
alias pmi="sudo pacman -Q" alias pms="pacman -Ss"
alias pkgst="sudo pacman -Qi" alias pkgst="pacman -Qi"
alias pkgi="sudo pacman -Si" alias pkgi="pacman -Si"
# alias pms="sudo pacman -Ss '^vim-'"
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\]"
}