[Pulp-list] Package Search
John Matthews
jmatthew at redhat.com
Wed Nov 10 15:40:35 UTC 2010
We've added support for searching all packages in pulp.
The search terms are regular expressions for: "name", "epoch", "version", "release", "arch", "filename"
You can search with one of those terms or use multiple terms. (you can even search with no terms, which would display all packages pulp sees)
Below is an example of the usage info and an example of a search.
Usage info:
$ pulp-admin search packages -h
Usage: pulp-admin <options> search packages <options>
Options:
-h, --help show this help message and exit
-a ARCH, --arch=ARCH package arch regex to search for
-e EPOCH, --epoch=EPOCH
package epoch regex to search for
-f FILENAME, --filename=FILENAME
package filename regex to search for
-n NAME, --name=NAME package name regex to search for
-r RELEASE, --release=RELEASE
package release regex to search for
-v VERSION, --version=VERSION
package version regex to search for
Search example:
$ pulp-admin -u admin -p admin search packages -n "Deployment_Guide-b.-IN" -a "noarch" -v "5\.[12]"
+------------------------------------------+
Package Information
+------------------------------------------+
Name EVRA Filename Repositories
Deployment_Guide-bn-IN 0:5.2-11.noarch Deployment_Guide-bn-IN-5.2-11.noarch.rpm rhel5_i386, rhel5_i386_dup, rhel5_x86_64, rhel5_x86_64_dup
Deployment_Guide-bn-IN 0:5.2-9.noarch Deployment_Guide-bn-IN-5.2-9.noarch.rpm rhel5_i386, rhel5_i386_dup, rhel5_x86_64, rhel5_x86_64_dup
Deployment_Guide-bn-IN 0:5.1.0-11.noarch Deployment_Guide-bn-IN-5.1.0-11.noarch.rpm rhel5_i386, rhel5_i386_dup, rhel5_x86_64, rhel5_x86_64_dup
More information about the Pulp-list
mailing list