Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

list user-installed packages minus dependencies?

12 views
Skip to first unread message

David Chmelik

unread,
Dec 29, 2023, 7:21:40 AM12/29/23
to
Can one get a 'pkg info' list of user-installed packages minus
dependencies?

Andreas Kempe

unread,
Dec 29, 2023, 7:50:33 AM12/29/23
to
Den 2023-12-29 skrev David Chmelik <dchm...@gmail.com>:
> Can one get a 'pkg info' list of user-installed packages minus
> dependencies?

To list all manually installed packages, you can run

pkg query -e "%a=0" %o

The %a variable is set to 0 for packages that were manually installed,
-e excutes it as a filter and %o is the output forhatting. man pkg-query
is your friend.

Bob Eager

unread,
Dec 29, 2023, 8:06:56 AM12/29/23
to
On Fri, 29 Dec 2023 12:21:37 +0000, David Chmelik wrote:

> Can one get a 'pkg info' list of user-installed packages minus
> dependencies?

Use 'pkg prime-origins'.

This is a predefined alias for:

pkg query -e '%a = 0' '%o'

'pkg prime-list' is equivalent.


--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

David Chmelik

unread,
Dec 31, 2023, 4:15:32 AM12/31/23
to
It works; thank you!

David Chmelik

unread,
Dec 31, 2023, 4:15:37 AM12/31/23
to
On 29 Dec 2023 13:06:53 GMT, Bob Eager wrote:
> On Fri, 29 Dec 2023 12:21:37 +0000, David Chmelik wrote:
>
>> Can one get a 'pkg info' list of user-installed packages minus
>> dependencies?
>
> Use 'pkg prime-origins'.
>
> This is a predefined alias for:
>
> pkg query -e '%a = 0' '%o'
>
> 'pkg prime-list' is equivalent.

These work; thank you!
0 new messages