[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Pulp-list] Package Search



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11/10/2010 10:40 AM, John Matthews wrote:
> 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

Sweet!


- -- 
Jason Dobies
RHCE# 805008743336126
Freenode: jdob
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJM2sEqAAoJEOMmcTqOSQHC8WUH/11XbeHYmDYP07Y1QyVITAYb
YowySoxq2eLlGnFvYteWazAmWuH93WbrBck0T9TvrAafbFO6XLSsDlQQtHmXALa+
Xxj4+VDE/DVk4naLzmbJsbla+VaQHHb3T0KTrbG6frOwaETF5wlJuipyE7VsG8kQ
jzflqScDI+2du+sXPf/WCihzH3tx3NYwWcVe2S5GSXGEor5BR+XIkzp0ruJBEIOq
8QAbqWue1oawwhrllas94SLgG/zqDTZT4tDbN72Hfj4+ElchkervMKs04M+I9UJo
WeBPkbhos2CWNIBtaQqtcqyJOmRElcDloI2U9HAOqu1dwcWV7JJj6o1KsYSb/3M=
=y3yY
-----END PGP SIGNATURE-----


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]