78 lines
739 B
Bash
78 lines
739 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 \
|
|
"
|
|
|
|
#
|
|
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 \
|
|
"${@}"
|
|
}
|