aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Overbruck <administrator@duncano.de>2014-04-20 14:43:14 +0200
committerDuncan Overbruck <administrator@duncano.de>2014-04-20 14:43:14 +0200
commit9cf349e0a26f3b0d1618bd040cae30ed5310fbfc (patch)
tree03acbabc5ad541d665c5c49f8d7adfc2acfb458d
parent7354d7d595cf01c8de0a3a4ede55b9c31bd2373e (diff)
downloaddotfiles-9cf349e0a26f3b0d1618bd040cae30ed5310fbfc.tar.gz
Create .bashrc_arch
-rw-r--r--.bashrc_arch23
1 files changed, 23 insertions, 0 deletions
diff --git a/.bashrc_arch b/.bashrc_arch
new file mode 100644
index 0000000..f4e3d52
--- /dev/null
+++ b/.bashrc_arch
@@ -0,0 +1,23 @@
+# Pacman alias examples
+alias pacupg='sudo pacman -Syu' # Synchronize with repositories and then upgrade packages that are out of date on the local system.
+alias pacin='sudo pacman -S' # Install specific package(s) from the repositories
+alias pacins='sudo pacman -U' # Install specific package not from the repositories but from a file
+alias pacre='sudo pacman -R' # Remove the specified package(s), retaining its configuration(s) and required dependencies
+alias pacrem='sudo pacman -Rns' # Remove the specified package(s), its configuration(s) and unneeded dependencies
+alias pacrep='pacman -Si' # Display information about a given package in the repositories
+alias pacreps='pacman -Ss' # Search for package(s) in the repositories
+alias pacloc='pacman -Qi' # Display information about a given package in the local database
+alias paclocs='pacman -Qs' # Search for package(s) in the local database
+alias paclo="pacman -Qdt" # List all packages which are orphaned
+alias pacc="sudo pacman -Scc" # Clean cache - delete all not currently installed package files
+alias paclf="pacman -Ql" # List all files installed by a given package
+alias pacexpl="pacman -D --asexp" # Mark one or more installed packages as explicitly installed
+alias pacimpl="pacman -D --asdep" # Mark one or more installed packages as non explicitly installed
+
+# '[r]emove [o]rphans' - recursively remove ALL orphaned packages
+alias pacro="pacman -Qtdq > /dev/null && sudo pacman -Rns \$(pacman -Qtdq | sed -e ':a;N;$!ba;s/\n/ /g')"
+
+# Additional pacman alias examples
+alias pacupd='sudo pacman -Sy && sudo abs' # Update and refresh the local package and ABS databases against repositories
+alias pacinsd='sudo pacman -S --asdeps' # Install given package(s) as dependencies
+alias pacmir='sudo pacman -Syy' # Force refresh of all package lists after updating /etc/pacman.d/mirrorlist