This commit is contained in:
Marc Beninca 2024-11-18 18:27:59 +01:00
parent 9e80019ddd
commit e933c159c3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,82 +1,94 @@
# show package information
acl() {
acl() { sh_a__apt_cache_list "${@}"; }
sh_a__apt_cache_list() {
apt-cache \
show \
"${@}"
}
# package versions policy
acp() {
acp() { sh_a__apt_cache_policy "${@}"; }
sh_a__apt_cache_policy() {
apt-cache \
policy \
"${@}"
}
# search package
acs() {
acs() { sh_a__apt_cache_search "${@}"; }
sh_a__apt_cache_search() {
apt-cache \
search \
"${@}"
}
#
agap() {
agap() { sh_a__apt_get_auto_purge "${@}"; }
sh_a__apt_get_auto_purge() {
apt-get \
autopurge \
"${@}"
}
#
agar() {
agar() { sh_a__apt_get_auto_remove "${@}"; }
sh_a__apt_get_auto_remove() {
apt-get \
autoremove \
"${@}"
}
# clean packages cache
agc() {
agc() { sh_a__apt_get_clean "${@}"; }
sh_a__apt_get_clean() {
apt-get \
clean \
"${@}"
}
# upgrade allowing package installation or removal
agfu() {
agfu() { sh_a__apt_get_full_upgrade "${@}"; }
sh_a__apt_get_full_upgrade() {
apt-get \
full-upgrade \
"${@}"
}
# install packages
agi() {
agi() { sh_a__apt_get_install "${@}"; }
sh_a__apt_get_install() {
apt-get \
install \
"${@}"
}
#
agp() {
agp() { sh_a__apt_get_purge "${@}"; }
sh_a__apt_get_purge() {
apt-get \
purge \
"${@}"
}
#
agr() {
agr() { sh_a__apt_get_remove "${@}"; }
sh_a__apt_get_remove() {
apt-get \
remove \
"${@}"
}
# update packages catalog
agud() {
agud() { sh_a__apt_get_up_date "${@}"; }
sh_a__apt_get_up_date() {
apt-get \
update \
"${@}"
}
# upgrade forbidding package installation or removal
agug() {
agug() { sh_a__apt_get_up_grade "${@}"; }
sh_a__apt_get_up_grade() {
apt-get \
upgrade \
"${@}"