diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-04-30 16:49:51 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-04-30 16:49:51 +0200 |
commit | a3c6de1d257ce0b58d4c0386d8044f0673b68c91 (patch) | |
tree | 52909d83b92ca148a7c093d17eab4dc4016cf3d4 | |
parent | d6deac54dd372c946942637636846893694ce521 (diff) | |
download | notes-a3c6de1d257ce0b58d4c0386d8044f0673b68c91.tar.gz notes-a3c6de1d257ce0b58d4c0386d8044f0673b68c91.zip |
pacman: install pkg into different root
-rw-r--r-- | src/tools/pacman.md | 6 |
1 files changed, 6 insertions, 0 deletions
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 +``` |