sh/shell/alias/apt.sh

74 lines
704 B
Bash
Raw Normal View History

2023-05-09 20:02:34 +00:00
# show package information
2023-05-14 14:54:43 +00:00
alias ac="\
apt-cache \
show \
"
# package versions policy
alias acp="\
apt-cache \
policy \
"
2023-05-09 20:02:34 +00:00
# search package
2023-05-14 14:54:43 +00:00
alias acs="\
apt-cache \
search \
"
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
alias agap="\
apt-get \
autopurge \
"
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
alias agar="\
apt-get \
autoremove \
"
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
# clean packages cache
alias agc="\
apt-get \
clean \
"
2023-05-09 20:02:34 +00:00
# upgrade allowing package installation or removal
2023-05-14 14:54:43 +00:00
alias agdu="\
apt-get \
dist-upgrade \
"
2023-05-09 20:02:34 +00:00
# install packages
2023-05-14 14:54:43 +00:00
alias agi="\
apt-get \
install \
"
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
alias agp="\
apt-get \
purge \
"
#
alias agr="\
apt-get \
remove \
"
# update packages catalog
2024-11-17 02:16:32 +00:00
agud() {
apt-get \
update \
"${@}"
}
2023-05-14 14:54:43 +00:00
# upgrade forbidding package installation or removal
2024-11-17 02:16:32 +00:00
agug() {
apt-get \
upgrade \
"${@}"
}