Both features you want are already there. 

dpkg --help shows you:

  dpkg --listfiles | -L <package>

This executes something like:

  cat /var/lib/dpkg/info/<package>.files

And the dselect help tells you that slash (/), in the tradition of
more(1), searches.

Reply via email to