new function: packagesmatching
Merge pull request #834 from tzz/tzz/feature-packagesmatching

new function: packagesmatching