rwx/sh/alias/apt.sh

96 lines
1.4 KiB
Bash
Raw Normal View History

2023-05-09 20:02:34 +00:00
# show package information
2024-11-19 08:17:14 +00:00
acl() { sa__apt_cache_list "${@}"; }
sa__apt_cache_list() {
2024-11-17 02:32:01 +00:00
apt-cache \
show \
"${@}"
}
2023-05-14 14:54:43 +00:00
# package versions policy
2024-11-19 08:17:14 +00:00
acp() { sa__apt_cache_policy "${@}"; }
sa__apt_cache_policy() {
2024-11-17 02:32:01 +00:00
apt-cache \
policy \
"${@}"
}
2023-05-09 20:02:34 +00:00
# search package
2024-11-19 08:17:14 +00:00
acs() { sa__apt_cache_search "${@}"; }
sa__apt_cache_search() {
2024-11-17 02:32:01 +00:00
apt-cache \
search \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
2024-11-19 08:17:14 +00:00
agap() { sa__apt_get_auto_purge "${@}"; }
sa__apt_get_auto_purge() {
2024-11-17 02:25:02 +00:00
apt-get \
autopurge \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
2024-11-19 08:17:14 +00:00
agar() { sa__apt_get_auto_remove "${@}"; }
sa__apt_get_auto_remove() {
2024-11-17 02:25:02 +00:00
apt-get \
autoremove \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
# clean packages cache
2024-11-19 08:17:14 +00:00
agc() { sa__apt_get_clean "${@}"; }
sa__apt_get_clean() {
2024-11-17 02:32:58 +00:00
apt-get \
clean \
"${@}"
}
2023-05-09 20:02:34 +00:00
# upgrade allowing package installation or removal
2024-11-19 08:17:14 +00:00
agfu() { sa__apt_get_full_upgrade "${@}"; }
sa__apt_get_full_upgrade() {
2024-11-17 02:55:05 +00:00
apt-get \
full-upgrade \
"${@}"
}
2023-05-09 20:02:34 +00:00
# install packages
2024-11-19 08:17:14 +00:00
agi() { sa__apt_get_install "${@}"; }
sa__apt_get_install() {
2024-11-17 02:20:31 +00:00
apt-get \
install \
"${@}"
}
2023-05-09 20:02:34 +00:00
2023-05-14 14:54:43 +00:00
#
2024-11-19 08:17:14 +00:00
agp() { sa__apt_get_purge "${@}"; }
sa__apt_get_purge() {
2024-11-17 02:18:15 +00:00
apt-get \
purge \
"${@}"
}
2023-05-14 14:54:43 +00:00
#
2024-11-19 08:17:14 +00:00
agr() { sa__apt_get_remove "${@}"; }
sa__apt_get_remove() {
2024-11-17 02:18:15 +00:00
apt-get \
remove \
"${@}"
}
2023-05-14 14:54:43 +00:00
# update packages catalog
2024-11-19 08:17:14 +00:00
agud() { sa__apt_get_up_date "${@}"; }
sa__apt_get_up_date() {
2024-11-17 02:16:32 +00:00
apt-get \
update \
"${@}"
}
2023-05-14 14:54:43 +00:00
# upgrade forbidding package installation or removal
2024-11-19 08:17:14 +00:00
agug() { sa__apt_get_up_grade "${@}"; }
sa__apt_get_up_grade() {
2024-11-17 02:16:32 +00:00
apt-get \
upgrade \
"${@}"
}