You are not logged in.
Hi
How to get the list of installed packages without Pacman
For example: have one backup of Arch Linux and try to get the installed package list (pkg cache, not av.)
Thx
Last edited by maziar (2023-07-05 16:09:19)
Offline
Why can't you use pacman??
If you really can't:
find /var/lib/pacman/local/ -type d -exec basename '{}' \;Or, for a more flexible format which is actually faster than the previous example when using gnu's coreutils (and has the bonus of being sorted):
sed -n '/%NAME%/{n;h;};/%VERSION%/{n;H;x;s/\n/\t/p;}' /var/lib/pacman/local/*/descLast edited by Trilby (2023-07-05 14:27:14)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
From the description it sounds like OP is searching for --sysroot, https://man.archlinux.org/man/core/pacm … en#OPTIONS
https://en.wikipedia.org/wiki/XY_problem
Offline
Why can't you use Pacman??
Because I have not lived arch! I only have a backup of it on another machine!
Offline
del
Last edited by maziar (2023-07-05 16:09:41)
Offline
From the description it sounds like OP is searching for --sysroot, https://man.archlinux.org/man/core/pacm … en#OPTIONS
https://en.wikipedia.org/wiki/XY_problem
![]()
Offline