Add aliases for openSUSE package management

This commit is contained in:
Eric Torres 2024-08-19 18:35:30 -07:00
parent 7ab79bb20c
commit b532c8228e

View File

@ -33,7 +33,6 @@ alias checkaurupdates='aur sync -d aur --upgrades --chroot'
# alias does not work correctly for some reason # alias does not work correctly for some reason
alias lspkg="pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h" alias lspkg="pacman -Qi | awk '/^Name/{name=$3} /^Installed Size/{print $4$5, name}' | sort -h"
alias ql='pacman -Qql' alias ql='pacman -Qql'
alias rpmget='aur sync -d rpm'
alias -g updatemirrors="reflector --verbose --country 'United States' --latest 20 --age 24 --sort rate --save /etc/pacman.d/mirrorlist" alias -g updatemirrors="reflector --verbose --country 'United States' --latest 20 --age 24 --sort rate --save /etc/pacman.d/mirrorlist"
# Arch Linux # Arch Linux
@ -48,9 +47,13 @@ alias pr='makepkg --force --clean --cleanbuild --syncdeps --rmdeps && addpkg rpm
alias updsrcinfo='makepkg --printsrcinfo >! .SRCINFO' alias updsrcinfo='makepkg --printsrcinfo >! .SRCINFO'
# Debian # Debian
alias aptlist='dpkg-query -L' alias aptl='dpkg-query -L'
[[ -x $(which fdfind) ]] && alias -g fd='fdfind' [[ -x $(which fdfind) ]] && alias -g fd='fdfind'
# OpenSUSE
alias rpml='rpm --query --list'
alias rpmfo='rpm -qf'
# firewall # firewall
alias -g fwcmd='firewall-cmd' alias -g fwcmd='firewall-cmd'
alias -g fwla='firewall-cmd --list-all' alias -g fwla='firewall-cmd --list-all'