From 4d2a2dc0d4d4f93f66995811f486d0460d3ebd89 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Thu, 13 Aug 2020 10:11:45 +0200 Subject: [PATCH] added example command for replacing packages --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7754a85..100ea0f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ # alhp -Build script for archlinux instructionset enabled repos. \ No newline at end of file +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. \ No newline at end of file