Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

Go to a movie tonight. Darkness becomes you.


comp / comp.unix.bsd.freebsd.misc / Re: list user-installed packages minus dependencies?

SubjectAuthor
* Re: list user-installed packages minus dependencies?Andreas Kempe
`- Re: list user-installed packages minus dependencies?David Chmelik

1
Subject: Re: list user-installed packages minus dependencies?
From: Andreas Kempe
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: Lysator ACS
Date: Fri, 29 Dec 2023 12:50 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!nyheter.lysator.liu.se!.POSTED!not-for-mail
From: kempe@lysator.liu.se (Andreas Kempe)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: list user-installed packages minus dependencies?
Date: Fri, 29 Dec 2023 12:50:30 -0000 (UTC)
Organization: Lysator ACS
Message-ID: <ummfam$qdo$1@nyheter.lysator.liu.se>
References: <ummdkh$qufk$1@dont-email.me>
Injection-Date: Fri, 29 Dec 2023 12:50:30 -0000 (UTC)
Injection-Info: nyheter.lysator.liu.se; posting-account="kempe";
logging-data="27064"; mail-complaints-to="newsmaster@lysator.liu.se"
User-Agent: slrn/1.0.3 (FreeBSD)
View all headers

Den 2023-12-29 skrev David Chmelik <dchmelik@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.

Subject: Re: list user-installed packages minus dependencies?
From: David Chmelik
Newsgroups: comp.unix.bsd.freebsd.misc
Organization: A noiseless patient Spider
Date: Sun, 31 Dec 2023 09:15 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dchmelik@gmail.com (David Chmelik)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: list user-installed packages minus dependencies?
Date: Sun, 31 Dec 2023 09:15:29 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <umrbfh$1kea7$1@dont-email.me>
References: <ummdkh$qufk$1@dont-email.me>
<ummfam$qdo$1@nyheter.lysator.liu.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 31 Dec 2023 09:15:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f68e569223eb2a706edbb5fe7c82152d";
logging-data="1718599"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX182RwHlzG2SG6sDyUjAHkrDiDklpOTIRQI="
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:lttuYndJE7UBtkzGI74TXQBYP8Y=
View all headers

On Fri, 29 Dec 2023 12:50:30 -0000 (UTC), Andreas Kempe wrote:
> Den 2023-12-29 skrev David Chmelik <dchmelik@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.

It works; thank you!

1

rocksolid light 0.9.8
clearnet tor