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

81 lines
761 B
Bash

# show package information
acl() {
apt-cache \
show \
"${@}"
}
# package versions policy
acp() {
apt-cache \
policy \
"${@}"
}
# search package
acs() {
apt-cache \
search \
"${@}"
}
#
agap() {
apt-get \
autopurge \
"${@}"
}
#
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
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 \
"${@}"
}