update pacman aliasg including comments. add valid distros file.

master
David Kebler 2024-08-04 07:59:49 -07:00
parent e44512050f
commit 7acd29cba2
2 changed files with 20 additions and 1 deletions

View File

@ -3,16 +3,29 @@
# https://wiki.archlinux.org/title/Pacman # https://wiki.archlinux.org/title/Pacman
alias pm="pacman" alias pm="pacman"
alias pms="sudo pacman" alias pms="sudo pacman"
# install including needed packages
alias pmi="sudo pacman -S --needed" alias pmi="sudo pacman -S --needed"
# remove a package and its dependencies which are not required by any other installed package:
alias pmr="sudo pacman -Rs" alias pmr="sudo pacman -Rs"
# update all
alias pmua="sudo pacman -Syu" alias pmua="sudo pacman -Syu"
# update only the repository database
alias pmur="sudo pacman -Syy"
# search for packages in the database, searching both in packages' names and descriptions:
alias pms="pacman -Ss" alias pms="pacman -Ss"
# list all installed packages
alias pml="pacman -Qe" alias pml="pacman -Qe"
# list packages with grep
alias pmlg="pacman -Qe | grep" alias pmlg="pacman -Qe | grep"
# https://unix.stackexchange.com/a/409903/201387 # https://unix.stackexchange.com/a/409903/201387
# get a list of user added packages
alias pmlf="comm -23 <(pacman -Qqett | sort | uniq) <(pacman -Qqg base-devel | sort | uniq)" alias pmlf="comm -23 <(pacman -Qqett | sort | uniq) <(pacman -Qqg base-devel | sort | uniq)"
# get status of a package
alias pkgst="pacman -Qi" alias pkgst="pacman -Qi"
# get info of a packaage
alias pkgi="pacman -Si" alias pkgi="pacman -Si"
# uses pamac to build/update an AUR. use in place of other AUR managers like yay
alias pkaurbld="pamac build"

View File

@ -1 +0,0 @@
/data/Hacking/computing/docker/uci-docker-build/core/rootfs/opt/lib/distros.csv
1 /data/Hacking/computing/docker/uci-docker-build/core/rootfs/opt/lib/distros.csv # valid distros list
/data/Hacking/computing/docker/uci-docker-build/core/rootfs/opt/lib/distros.csv

7
distro/distros.csv Normal file
View File

@ -0,0 +1,7 @@
# valid distros list
# the distro must be the name used in /etc/os-release
# <distro>,<core image name>,<install command>,<update command>
alpine,alpine, apk add --no-cache, apk update
debian,debian, apt-get install -y, apt-get update
arch, archlinux,pacman -S --noconfirm --needed, pacman -Syu
ubuntu, ubuntu, apt-get install -y, apt-get update
1 /data/Hacking/computing/docker/uci-docker-build/core/rootfs/opt/lib/distros.csv # valid distros list
1 # valid distros list
2 # the distro must be the name used in /etc/os-release
3 # <distro>,<core image name>,<install command>,<update command>
4 alpine,alpine, apk add --no-cache, apk update
5 debian,debian, apt-get install -y, apt-get update
6 arch, archlinux,pacman -S --noconfirm --needed, pacman -Syu
7 ubuntu, ubuntu, apt-get install -y, apt-get update