Skip to content

Is there an example for looking for multiple packages? #359

Closed Answered by chris-rock
chris-rock asked this question in Q&A
Discussion options

You must be logged in to vote

Depending on what information you want to get you can query the system:

returns the list of packages that include ssh or zsh

packages.where( name == /ssh/ || name == /zsh/ )

specific data fields

You can also filter the data fields:

packages { name version }

where filter + field selector

You can combine both:

packages.where( name == /ssh/ || name == /zsh/ ) { name version }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by atomic111
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant