1 .TH AUR-QUERY 1 2022-02-25 AURUTILS
3 aur\-query \- send requests to the aurweb RPC interface
9 .IR pkgname " [" pkgname... ]
14 retrieves package information from an AUR endpoint by sending HTTP GET
15 or POST requests to the
16 .UR https://\:aur.archlinux.org/\:rpc.php
22 Arguments are taken from the command-line. If the first argument is
26 arguments are taken from standard input. JSON responses are delimited by
27 newlines (JSON Lines).
31 type requests, the intersection of results is taken by default.
34 The request type and arguments must be compatible to the chosen RPC version (see the
35 .B AUR_QUERY_RPC_VERSION
36 environment variable). The options below assume
40 .BR \-b ", " \-\-by=\fR<KIND>
41 Arguments for package search
42 .RB ( \-\-type=search ).
54 .BR \-t ", " \-\-type=\fR<NAME>
55 Type of request. Can be one of
62 Return the set union of results instead of the intersection. Applies to
64 requests. The result is a single JSON structure, delimited by a newline.
67 .BR \-e ", " \-\-exit\-if\-empty
68 If no results are found, exit with status 1 instead of 0.
72 Do not process results. Implied by
77 returns 0 if no errors occured, 1 if no results were found
80 .B \-\-exit\-if\-empty
82 and 2 if a request resulted in an error
88 The URI of the AUR endpoint. Defaults to
89 .IR https://\:aur.archlinux.org .
93 If set to a positive value, transfers are done with
94 .BR "curl \-\-parallel" .
100 .B AUR_QUERY_PARALLEL_MAX
101 The amount of maximal parallel transfers (defaults to 15). Translates to
102 .BR "curl \-\-parallel\-max" .
106 The URI of the RPC interface. Defaults to
107 .IR "$AUR_LOCATION/rpc/?v=5" .
110 .B AUR_QUERY_RPC_POST
111 If set to a positive value, use HTTP POST for requests.
116 For info-type requests, more packages can be queried in a single
117 request with HTTP POST than with HTTP GET, and this approach is
118 preferable especially when querying large numbers of packages.
122 .B AUR_QUERY_RPC_SPLITNO
123 The amount of packages listed per URI when using HTTP GET for info-type
124 requests. This is used to avoid HTTP 414 errors with larger sets (>200)
131 .B AUR_QUERY_RPC_SPLITNO_POST
132 The amount of packages in the message body when using HTTP POST for
133 info-type requests. Defaults to
135 This value should not be set higher than 5000 (the maximum amount of
136 package results in an
141 .B AUR_QUERY_RPC_VERSION
142 The version for the RPC endpoint. Defaults to
146 The default set of options for
149 .BR "\-A aurutils \-fgLsSq" .
154 .BR aur\-depends (1),
161 .MT https://github.com/AladW
165 .\" vim: set textwidth=72: