sh/shell/alias/apt.sh
2024-11-17 03:18:15 +01:00

75 lines
718 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 \
"
#
agp() {
apt-get \
purge \
"${@}"
}
#
agr() {
apt-get \
remove \
"${@}"
}
# update packages catalog
agud() {
apt-get \
update \
"${@}"
}
# upgrade forbidding package installation or removal
agug() {
apt-get \
upgrade \
"${@}"
}