From e933c159c3cea04a09dac16028c8a38639764f3e Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 18:27:59 +0100 Subject: [PATCH] apt --- sh/alias/apt.sh | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/sh/alias/apt.sh b/sh/alias/apt.sh index aba5844..4747c81 100644 --- a/sh/alias/apt.sh +++ b/sh/alias/apt.sh @@ -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 \ "${@}"