FEAT: Add Aptitude aliases
Why?: - Aptitude is an alternative to apt with a great user interface, so there should also be some aliases that make using it as easy as with the apt aliases. This change addresses the need by: - Add new alias file aptitude.aliases.bash with most of the same Apt aliases instead using Aptitude - Also add some new aliases for Aptitude specific features like "why-not"pull/2194/head
parent
feb468b517
commit
4dc847cde1
|
|
@ -0,0 +1,32 @@
|
||||||
|
# shellcheck shell=bash
|
||||||
|
#
|
||||||
|
# -binaryanomaly
|
||||||
|
|
||||||
|
cite 'about-alias'
|
||||||
|
about-alias 'Aptitude and dpkg aliases for Ubuntu and Debian distros.'
|
||||||
|
|
||||||
|
# set apt aliases
|
||||||
|
function _set_pkg_aliases() {
|
||||||
|
if _command_exists aptitude; then
|
||||||
|
alias apts='aptitude search'
|
||||||
|
alias aptshow='aptitude show'
|
||||||
|
alias aptinst='sudo aptitude install -V'
|
||||||
|
alias aptupd='sudo aptitude update'
|
||||||
|
alias aptsupg='sudo aptitude safe-upgrade'
|
||||||
|
alias aptupg='sudo apt-get dist-upgrade -V && sudo apt-get autoremove'
|
||||||
|
alias aptupgd='sudo apt-get update && sudo apt-get dist-upgrade -V && sudo apt-get autoremove'
|
||||||
|
alias aptrm='sudo aptitude remove'
|
||||||
|
alias aptpurge='sudo aptitude purge'
|
||||||
|
alias aptclean='sudo aptitude clean && sudo aptitude autoclean'
|
||||||
|
alias apty='aptitude why'
|
||||||
|
alias aptyn='aptitude why-not'
|
||||||
|
|
||||||
|
alias chkup='/usr/lib/update-notifier/apt-check -p --human-readable'
|
||||||
|
alias chkboot='cat /var/run/reboot-required'
|
||||||
|
|
||||||
|
alias pkgfiles='dpkg --listfiles'
|
||||||
|
alias listinstalled='aptitude search "~i!~M"'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
_set_pkg_aliases
|
||||||
Loading…
Reference in New Issue