sh/shell/alias/apt.sh

83 lines
768 B
Bash
Raw Normal View History

2023-05-09 20:02:34 +00:00
# show package information
2024-11-17 02:32:01 +00:00
acl() {
apt-cache \
show \
"${@}"
}
2023-05-14 14:54:43 +00:00
# package versions policy
2024-11-17 02:32:01 +00:00
acp() {
apt-cache \
policy \
"${@}"
}
2023-05-09 20:02:34 +00:00
# search package
2024-11-17 02:32:01 +00:00
acs() {
apt-cache \
search \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
2024-11-17 02:25:02 +00:00
agap() {
apt-get \
autopurge \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
2024-11-17 02:25:02 +00:00
agar() {
apt-get \
autoremove \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
# clean packages cache
2024-11-17 02:32:58 +00:00
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
2024-11-17 02:20:31 +00:00
agi() {
apt-get \
install \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
2024-11-17 02:18:15 +00:00
agp() {
apt-get \
purge \
"${@}"
}
2023-05-14 14:54:43 +00:00
#
2024-11-17 02:18:15 +00:00
agr() {
apt-get \
remove \
"${@}"
}
2023-05-14 14:54:43 +00:00
# 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 \
"${@}"
}