From a3c6de1d257ce0b58d4c0386d8044f0673b68c91 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Sun, 30 Apr 2023 16:49:51 +0200 Subject: pacman: install pkg into different root --- src/tools/pacman.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tools') diff --git a/src/tools/pacman.md b/src/tools/pacman.md index 12c5836..2a6ce95 100644 --- a/src/tools/pacman.md +++ b/src/tools/pacman.md @@ -56,3 +56,9 @@ pacman -Qetq | xargs pacman -Qi | /Installed Size/ { printf "%8.2f%s %s\n", $4, $5, name }' | sort -h ``` + +Install package into different `root` directory but keep using the default +database. +```text +pacman --root abc --dbpath /var/lib/pacman -S mingw-w64-gcc +``` -- cgit v1.2.3