Libzypp/ZMD/ZMD7.1/helpers/query-files

From openSUSE

query-files

  • query-files

Syntax:

query-files <database> <uri> [catalog id]

Used to query package files on the local file system and produce metadata. The uri argument must start with file:// and contain path to local file or directory. If the uri points to a directory, the uri can contain an additional query part recursive which makes the helper to scan the directory itself plus all it's subdirectories. Some examples of correct uris:

file:///tmp/packages/perl-5.8.6-2.i586.rpm
file://tmp/packages?recursive=1

Metadata of all found packages is written to the packages table. If the command line had catalog id, it's written to the channel field, otherwise a well known id @local is used.

All warnings and errors are written to standard error using the common messaging format defined here.

The helper returns 0 on success and anything else in case of failure.