From: Samir Benmendil Date: Tue, 23 Aug 2016 08:21:24 +0000 (+0100) Subject: zsh: add pacman-like aliases for apt X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/de7cb3fcccd60093391a00b4d454c4e2e50a4d91?ds=sidebyside zsh: add pacman-like aliases for apt --- diff --git a/zsh/aliases/zz-pacmanapt.zsh b/zsh/aliases/zz-pacmanapt.zsh new file mode 100644 index 0000000..fbb318d --- /dev/null +++ b/zsh/aliases/zz-pacmanapt.zsh @@ -0,0 +1,20 @@ +if (( ! $+commands[apt-get] )); then + return 1 +fi + +alias pacupg='sudo apt-get update && sudo apt-get install' +alias pacin='sudo apt-get install' # Install specific package(s) from the repositories +alias pacu='sudo dpkg -i' # Install specific package not from the repositories but from a file +alias pacre='sudo apt-get remove' # Remove the specified package(s), retaining its configuration(s) and required dependencies +alias pacrem='sudo apt-get remove --auto-remove' # Remove the specified package(s), its configuration(s) and unneeded dependencies +alias pacrm='sudo apt-get remove --auto-remove' # Remove the specified package(s), its configuration(s) and unneeded dependencies +alias pacsi='apt-cache show' # Display information about a given package in the repositories +alias pacss='apt-cache search' # Search for package(s) in the repositories +alias pacqi='dpkg --status' # Display information about a given package in the local database +alias pacqs='dpkg --list' # Search for package(s) in the local database +alias pacl='dpkg --listfiles' # List all files owned by package(s) +alias paco='dpkg --search' # List package owning the given file(s) +alias pacdep='sudo pacman -D --asdeps' # Mark package as dependency +alias pacexp='sudo pacman -D --asexplicit' # Mark package as explicit +alias pacinsd='sudo pacman -S --asdeps' # Install given package(s) as dependencies of another package +alias pacmir='sudo pacman -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist