summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-07-04 15:10:15 -0500
committerToby Vincent <tobyv13@gmail.com>2023-07-04 15:10:15 -0500
commit46ad37b20db3aef67123390b6c3cf75a4663e1c6 (patch)
tree8932412de930d0d5abc28ef96d23b64f4b6e112f
parent2be4094eca8b73ff5052d87b7f70464a15e657e1 (diff)
fix(pacman): improve reflector docs
-rw-r--r--src/install/pacman.md40
1 files changed, 28 insertions, 12 deletions
diff --git a/src/install/pacman.md b/src/install/pacman.md
index 31c8469..73e7d45 100644
--- a/src/install/pacman.md
+++ b/src/install/pacman.md
@@ -30,7 +30,7 @@ Enable rustc flags for makepkg
RUSTFLAGS="-C opt-level=2 -C target-cpu=native"
```
-## Pacman utils
+## Utils
Install utility scripts
@@ -38,6 +38,33 @@ Install utility scripts
paru -S pacman-contrib
```
+## Reflector
+
+Reflector is a utility to optimize the pacman mirrorlist.
+
+Install reflector package
+
+```console
+paru -S reflector
+```
+
+Set flags for reflector
+
+```confg
+# /etc/xdg/reflector/reflector.conf
+--save /etc/pacman.d/mirrorlist
+--country us
+--age 2
+--score 10
+--sort rate
+```
+
+Run reflector to update mirror list
+
+```console
+sudo systemctl start reflector.service
+```
+
## Hooks
Install hooks
@@ -61,14 +88,3 @@ Depends = procps-ng
When = PostTransaction
Exec = /usr/bin/pkill zsh --signal=USR1
```
-
-Set flags for reflector
-
-```confg
-# /etc/xdg/reflector/reflector.conf
---save /etc/pacman.d/mirrorlist
---country us
---age 2
---score 10
---sort rate
-```