Solved How to find installed pkgs on non-active partition

Is there any way to get a list of FreeBSD pkgs installed on a partition where FreeBSD is not currently booted from?... a kind of

" pkg prime-list /dev/da0p5"
 
You could load the database and query that. The package database is stored in /var/db/pkg/local.sqlite and is a regular SQLite database.

As far as I can tell there's no option to tell pkg(8) to look at a different file. But you could chroot(8) into the mounted filesystem and work from there.
 
That's the third time you are asking this question and we ( balanga, SirDice and I)
are together once again :)

 
That's the third time you are asking this question and we ( balanga, SirDice and I)
are together once again :)

Oops!!!!

Sorry.

ps. just found that

pkg -c /mnt prime-list

works.
 
Back
Top