sh/shell/alias/apt.sh
2024-11-17 03:16:32 +01:00

73 lines
704 B
Bash

# show package information
alias ac="\
apt-cache \
show \
"
# package versions policy
alias acp="\
apt-cache \
policy \
"
# search package
alias acs="\
apt-cache \
search \
"
#
alias agap="\
apt-get \
autopurge \
"
#
alias agar="\
apt-get \
autoremove \
"
# clean packages cache
alias agc="\
apt-get \
clean \
"
# upgrade allowing package installation or removal
alias agdu="\
apt-get \
dist-upgrade \
"
# install packages
alias agi="\
apt-get \
install \
"
#
alias agp="\
apt-get \
purge \
"
#
alias agr="\
apt-get \
remove \
"
# update packages catalog
agud() {
apt-get \
update \
"${@}"
}
# upgrade forbidding package installation or removal
agug() {
apt-get \
upgrade \
"${@}"
}