* [devel] [JT] rpmquery и итераторы
@ 2021-04-09 8:47 Michael Shigorin
0 siblings, 0 replies; only message in thread
From: Michael Shigorin @ 2021-04-09 8:47 UTC (permalink / raw)
To: devel
Здравствуйте.
Смутно помнил, что такое есть; сейчас наконец нашёл
(и записал в целевом скриптике), как его применять:
$ rpm -qp --qf='%{EXCLUSIVEARCH}\n' xorg-drv-amdgpu-19.1.0-alt3.src.rpm
i386
$ rpm -qp --qf='[%{EXCLUSIVEARCH} ]\n' xorg-drv-amdgpu-19.1.0-alt3.src.rpm
i386 i486 i586 i686 i786 i886 i986 pentium2 pentium3 pentium4 k6 athlon athlon_xp x86_64 aarch64 ppc64le e2k e2kv4 e2kv5 e2kv6 e2k4c e2k8c e2k1cp e2k8c2 e2k12c e2k16c e2k2c3
Нашёл в http://rpm5.org/docs/max-rpm.html#s2-rpm-rpmlib-header-iterator-support
-- также есть и в http://rpm.org/user_doc/query_format.html
--
---- WBR, Michael Shigorin / http://altlinux.org
------ http://opennet.ru / http://anna-news.info
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-09 8:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 8:47 [devel] [JT] rpmquery и итераторы Michael Shigorin
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git