my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

183 lines
16 KiB

3 years ago
  1. # Arch Linux plugin
  2. This plugin adds some aliases and functions to work with Arch Linux.
  3. To use it, add `archlinux` to the plugins array in your zshrc file:
  4. ```zsh
  5. plugins=(... archlinux)
  6. ```
  7. ## Features
  8. ### Pacman
  9. | Alias | Command | Description |
  10. |--------------|----------------------------------------|------------------------------------------------------------------|
  11. | pacin | `sudo pacman -S` | Install packages from the repositories |
  12. | pacins | `sudo pacman -U` | Install a package from a local file |
  13. | pacinsd | `sudo pacman -S --asdeps` | Install packages as dependencies of another package |
  14. | paclean | `sudo pacman -Sc` | Clean out old and unused caches and packages |
  15. | pacloc | `pacman -Qi` | Display information about a package in the local database |
  16. | paclocs | `pacman -Qs` | Search for packages in the local database |
  17. | paclr | `sudo pacman -Scc` | Remove all files from the cache |
  18. | paclsorphans | `sudo pacman -Qdt` | List all orphaned packages |
  19. | pacmir | `sudo pacman -Syy` | Force refresh of all package lists after updating mirrorlist |
  20. | pacre | `sudo pacman -R` | Remove packages, keeping its settings and dependencies |
  21. | pacrem | `sudo pacman -Rns` | Remove packages, including its settings and dependencies |
  22. | pacrep | `pacman -Si` | Display information about a package in the repositories |
  23. | pacreps | `pacman -Ss` | Search for packages in the repositories |
  24. | pacrmorphans | `sudo pacman -Rs $(pacman -Qtdq)` | Delete all orphaned packages |
  25. | pacupd | `sudo pacman -Sy` | Update and refresh local package, ABS and AUR databases |
  26. | pacupg | `sudo pacman -Syu` | Sync with repositories before upgrading packages |
  27. | pacfileupg | `sudo pacman -Fy` | Download fresh package databases from the server |
  28. | pacfiles | `pacman -F` | Search package file names for matching strings |
  29. | pacls | `pacman -Ql` | List files in a package |
  30. | pacown | `pacman -Qo` | Show which package owns a file |
  31. | upgrade[¹](#f1) | `sudo pacman -Syu` | Sync with repositories before upgrading packages |
  32. | Function | Description |
  33. |----------------|-----------------------------------------------------------|
  34. | pacdisowned | List all disowned files in your system |
  35. | paclist | List all explicitly installed packages with a description |
  36. | pacmanallkeys | Get all keys for developers and trusted users |
  37. | pacmansignkeys | Locally trust all keys passed as parameters |
  38. | pacweb | Open the website of an ArchLinux package |
  39. Note: paclist used to print packages with a description which are (1) explicitly installed
  40. and (2) available for upgrade. Due to flawed scripting, it also printed all packages if no
  41. upgrades were available. Use `pacman -Que` instead.
  42. ### AUR helpers
  43. #### Aura
  44. | Alias | Command | Description |
  45. |---------|-------------------------------------------------|-------------------------------------------------------------------------|
  46. | auclean | `sudo aura -Sc` | Clean out old and unused caches and packages |
  47. | auclr | `sudo aura -Scc` | Remove all files from the cache |
  48. | auin | `sudo aura -S` | Install packages from the repositories |
  49. | aurin | `sudo aura -A` | Install packages from the repositories |
  50. | auins | `sudo aura -U` | Install a package from a local file |
  51. | auinsd | `sudo aura -S --asdeps` | Install packages as dependencies of another package (repositories only) |
  52. | aurinsd | `sudo aura -A --asdeps` | Install packages as dependencies of another package (AUR only) |
  53. | auloc | `aura -Qi` | Display information about a package in the local database |
  54. | aulocs | `aura -Qs` | Search for packages in the local database |
  55. | auls | `aura -Qql` | List all files owned by a given package |
  56. | aulst | `aura -Qe` | List installed packages including from AUR (tagged as "local") |
  57. | aumir | `sudo aura -Syy` | Force refresh of all package lists after updating mirrorlist |
  58. | aurph | `sudo aura -Oj` | Remove orphans using aura |
  59. | auown | `aura -Qqo` | Search for packages that own the specified file(s) |
  60. | aure | `sudo aura -R` | Remove packages, keeping its settings and dependencies |
  61. | aurem | `sudo aura -Rns` | Remove packages, including its settings and unneeded dependencies |
  62. | aurep | `aura -Si` | Display information about a package in the repositories |
  63. | aurrep | `aura -Ai` | Display information about a package from AUR |
  64. | aureps | `aura -As --both` | Search for packages in the repositories and AUR |
  65. | auras | `aura -As --both` | Same as above |
  66. | auupd | `sudo aura -Sy` | Update and refresh local package, ABS and AUR databases |
  67. | auupg | `sudo sh -c "aura -Syu && aura -Au"` | Sync with repositories before upgrading all packages (from AUR too) |
  68. | ausu | `sudo sh -c "aura -Syu --no-confirm && aura -Au --no-confirm"` | Same as `auupg`, but without confirmation |
  69. | upgrade[¹](#f1) | `sudo aura -Syu` | Sync with repositories before upgrading packages |
  70. | Function | Description |
  71. |-----------------|---------------------------------------------------------------------|
  72. | auownloc _file_ | Display information about a package that owns the specified file(s) |
  73. | auownls _file_ | List all files owned by a package that owns the specified file(s) |
  74. #### Pacaur
  75. | Alias | Command | Description |
  76. |---------|-----------------------------------|---------------------------------------------------------------------|
  77. | pacclean| `pacaur -Sc` | Clean out old and unused caches and packages |
  78. | pacclr | `pacaur -Scc` | Remove all files from the cache |
  79. | pain | `pacaur -S` | Install packages from the repositories |
  80. | pains | `pacaur -U` | Install a package from a local file |
  81. | painsd | `pacaur -S --asdeps` | Install packages as dependencies of another package |
  82. | paloc | `pacaur -Qi` | Display information about a package in the local database |
  83. | palocs | `pacaur -Qs` | Search for packages in the local database |
  84. | palst | `pacaur -Qe` | List installed packages including from AUR (tagged as "local") |
  85. | pamir | `pacaur -Syy` | Force refresh of all package lists after updating mirrorlist |
  86. | paorph | `pacaur -Qtd` | Remove orphans using pacaur |
  87. | pare | `pacaur -R` | Remove packages, keeping its settings and dependencies |
  88. | parem | `pacaur -Rns` | Remove packages, including its settings and unneeded dependencies |
  89. | parep | `pacaur -Si` | Display information about a package in the repositories |
  90. | pareps | `pacaur -Ss` | Search for packages in the repositories |
  91. | paupd | `pacaur -Sy` | Update and refresh local package, ABS and AUR databases |
  92. | paupg | `pacaur -Syua` | Sync with repositories before upgrading all packages (from AUR too) |
  93. | pasu | `pacaur -Syua --no-confirm` | Same as `paupg`, but without confirmation |
  94. | upgrade[¹](#f1) | `pacaur -Syu` | Sync with repositories before upgrading packages |
  95. #### Trizen
  96. | Alias | Command | Description |
  97. |---------|-----------------------------------|---------------------------------------------------------------------|
  98. | trconf | `trizen -C` | Fix all configuration files with vimdiff |
  99. | trclean | `trizen -Sc` | Clean out old and unused caches and packages |
  100. | trclr | `trizen -Scc` | Remove all files from the cache |
  101. | trin | `trizen -S` | Install packages from the repositories |
  102. | trins | `trizen -U` | Install a package from a local file |
  103. | trinsd | `trizen -S --asdeps` | Install packages as dependencies of another package |
  104. | trloc | `trizen -Qi` | Display information about a package in the local database |
  105. | trlocs | `trizen -Qs` | Search for packages in the local database |
  106. | trlst | `trizen -Qe` | List installed packages including from AUR (tagged as "local") |
  107. | trmir | `trizen -Syy` | Force refresh of all package lists after updating mirrorlist |
  108. | trorph | `trizen -Qtd` | Remove orphans using yaourt |
  109. | trre | `trizen -R` | Remove packages, keeping its settings and dependencies |
  110. | trrem | `trizen -Rns` | Remove packages, including its settings and unneeded dependencies |
  111. | trrep | `trizen -Si` | Display information about a package in the repositories |
  112. | trreps | `trizen -Ss` | Search for packages in the repositories |
  113. | trupd | `trizen -Sy` | Update and refresh local package, ABS and AUR databases |
  114. | trupg | `trizen -Syua` | Sync with repositories before upgrading all packages (from AUR too) |
  115. | trsu | `trizen -Syua --no-confirm` | Same as `trupg`, but without confirmation |
  116. | upgrade[¹](#f1) | `trizen -Syu` | Sync with repositories before upgrading packages |
  117. #### Yay
  118. | Alias | Command | Description |
  119. |---------|--------------------------------|-------------------------------------------------------------------|
  120. | yaconf | `yay -Pg` | Print current configuration |
  121. | yaclean | `yay -Sc` | Clean out old and unused caches and packages |
  122. | yaclr | `yay -Scc` | Remove all files from the cache |
  123. | yain | `yay -S` | Install packages from the repositories |
  124. | yains | `yay -U` | Install a package from a local file |
  125. | yainsd | `yay -S --asdeps` | Install packages as dependencies of another package |
  126. | yaloc | `yay -Qi` | Display information about a package in the local database |
  127. | yalocs | `yay -Qs` | Search for packages in the local database |
  128. | yalst | `yay -Qe` | List installed packages including from AUR (tagged as "local") |
  129. | yamir | `yay -Syy` | Force refresh of all package lists after updating mirrorlist |
  130. | yaorph | `yay -Qtd` | Remove orphans using yay |
  131. | yare | `yay -R` | Remove packages, keeping its settings and dependencies |
  132. | yarem | `yay -Rns` | Remove packages, including its settings and unneeded dependencies |
  133. | yarep | `yay -Si` | Display information about a package in the repositories |
  134. | yareps | `yay -Ss` | Search for packages in the repositories |
  135. | yaupd | `yay -Sy` | Update and refresh local package, ABS and AUR databases |
  136. | yaupg | `yay -Syu` | Sync with repositories before upgrading packages |
  137. | yasu | `yay -Syu --no-confirm` | Same as `yaupg`, but without confirmation |
  138. | upgrade[¹](#f1) | `yay -Syu` | Sync with repositories before upgrading packages |
  139. ---
  140. <span id="f1">¹</span>
  141. The `upgrade` alias is set for all package managers. Its value will depend on
  142. whether the package manager is installed, checked in the following order:
  143. 1. `yay`
  144. 2. `trizen`
  145. 3. `pacaur`
  146. 4. `aura`
  147. 5. `pacman`
  148. ## Contributors
  149. - Benjamin Boudreau - [email protected]
  150. - Celso Miranda - [email protected]
  151. - ratijas (ivan tkachenko) - [email protected]
  152. - Juraj Fiala - [email protected]
  153. - KhasMek - [email protected]
  154. - Majora320 (Moses Miller) - [email protected]
  155. - Martin Putniorz - [email protected]
  156. - MatthR3D - [email protected]
  157. - ornicar - [email protected]
  158. - Ybalrid (Arthur Brainville) - [email protected]
  159. - Jeff M. Hubbard - [email protected]
  160. - K. Harishankar(harishnkr) - [email protected]