#273896 debconf-get-selections: option to only display listed package questions

#273896#5
Date:
2004-09-28 18:46:55 UTC
From:
To:
it would be nice if debconf-get-selections had a commandline option to
only output questions for a specific package, or list of packages...

perhaps it would look like:

debconf-get-selections --packages "debconf-utils,foo,bar"

and then only display questions owned by the specified packages...

thanks.

live well,
   vagrant

#273896#10
Date:
2004-09-28 19:35:10 UTC
From:
To:
Vagrant Cascadian wrote:

Can't you just do the same thing with grep?

#273896#15
Date:
2004-09-28 20:26:52 UTC
From:
To:
i'm not personally real regex savvy, so there's quite possibly better or
simpler ways to do it, but:

debconf-get-selections | egrep "^debconf-utils[[:space:]]|^foo[[:space:]]|^bar[[:space:]]"

it does require considerably more typing/scripting, especially as the
package list grows long, but yes... it can be done with grep...

given permission to wish, i would wish debconf-set-selections to support
some simpler way :)

thanks.

live well,
  vagrant