]> git.rmz.io Git - dotfiles.git/commitdiff
zsh: add pacman-like aliases for apt
authorSamir Benmendil <me@rmz.io>
Tue, 23 Aug 2016 08:21:24 +0000 (09:21 +0100)
committerSamir Benmendil <me@rmz.io>
Tue, 23 Aug 2016 08:21:24 +0000 (09:21 +0100)
zsh/aliases/zz-pacmanapt.zsh [new file with mode: 0644]

diff --git a/zsh/aliases/zz-pacmanapt.zsh b/zsh/aliases/zz-pacmanapt.zsh
new file mode 100644 (file)
index 0000000..fbb318d
--- /dev/null
@@ -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