Add initialize_pacman script

This script will initialize pacman-key and populate some keys in
preparation for the other scripts in that directory
This commit is contained in:
Nikita Hasert committed 2025-05-23 07:22:24 +02:00
1 parent 0ab57334d8
commit 303992f5ad
3 files changed
+14 -4

No files matched your search

+9
View File
@@ -24,6 +24,15 @@ To run all scripts, simply execute
./install_all
```
If you want to run the scripts individually, make sure to execute `/scripts/initialize_pacman` beforehand, to initialize pacman-key and populate it with some trusted keys otherwise you may see this error for install scripts
```bash
warning: Public keyring not found; have you run 'pacman-key --init'?
downloading required keys...
error: keyring is not writable
error: required key missing from keyring
error: failed to commit transaction (could not find or read file)
```
## General Tools & Misc
### ./scripts/install_xclip
+1 -4
View File
@@ -1,9 +1,6 @@
#!/bin/bash
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate holo
sudo pacman-key --refresh-keys
. scripts/initialize_pacman
. scripts/install_lein
. scripts/install_neovim
+4
View File
@@ -0,0 +1,4 @@
sudo pacman-key --init
sudo pacman-key --populate archlinux
sudo pacman-key --populate holo
sudo pacman-key --refresh-keys