added example command for replacing packages

This commit is contained in:
2020-08-13 10:11:45 +02:00
parent b95a73d735
commit 4d2a2dc0d4

View File

@@ -1,3 +1,13 @@
# alhp
Build script for archlinux instructionset enabled repos.
Build script for archlinux instructionset enabled repos.
## Replace packages
Following command reinstalls all packages found in the repo **extra-znver2** that are already installed.
Replace `extra-znver2` with whatever repo you want to install.
```shell script
pacman -S $(pacman -Sl extra-znver2 | grep installed | cut -f 2 -d " " | perl -p -i -e 's/\R/ /g;')
```
This is only needed once, new updates are coming from this new repo then, as usual.