Hello Ottavio,

pkg_info -m

will show you all the packages, which you have installed,
without their dependencies.

pkg_info -a

will show you all the packages, including their dependecies.

Regards,
Stefan


-----Ursprüngliche Nachricht-----
Von: owner-m...@openbsd.org <owner-m...@openbsd.org> Im Auftrag von Ottavio 
Caruso
Gesendet: Sonntag, 7. Juni 2020 22:14
An: misc <misc@openbsd.org>
Betreff: Re: How do I get a list of the files of only installed packages?

On Sun, 7 Jun 2020 at 21:11, Ottavio Caruso <ottavio2006-usenet2...@yahoo.com> 
wrote:
>
> Hi,
>
> "pkg_info -L PACKAGE-NAME"
>
> will give me a list of all the files within each package, regardless 
> of whether the package is installed or not.
>
> How can I restrict the output to only installed packages, making it 
> fail if the package is not installed?
>
> I could do:
>
> "pkg_info -f PACKAGE-NAME "
>

Correction: "pkg_info -f" will also show me the packing list of remote 
packages, so that is not an option either.


--
Ottavio Caruso

Reply via email to