Mailinglist Archive: opensuse-factory (745 mails)

< Previous Next >
Re: [opensuse-factory] Re: btrfs /var changes
On 2018-01-30 11:33, Andreas Schwab wrote:
On Jan 30 2018, Andrei Borzenkov <arvidjaar@xxxxxxxxx> wrote:

On Tue, Jan 30, 2018 at 12:27 PM, Stefan Seyfried
<stefan.seyfried@xxxxxxxxxxxxxx> wrote:
On 30.01.2018 09:32, Roger Oberholtzer wrote:
Which is the rpm name, version, release, architecture, and repo.

I wonder how that list is made...

man rpm
/queryformat

And tag for "repo" is ... ?

%{DISTURL}.

Yes, but the syntax for zypper install uses repo name or alias, not url.

I use this concoction myself:

rpm -q -a --queryformat "%{INSTALLTIME};%{INSTALLTIME:day}; \
%{BUILDTIME:day}; %{NAME};%{VERSION}-%-7{RELEASE};%{arch}; \
%{VENDOR};%{PACKAGER};%{DISTRIBUTION};%{DISTTAG}\n" \
| sort | cut --fields="2-" --delimiter=\; \
| tee rpmlist.csv | less -S

or

rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \
%{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE}\t%{arch} \
%25{VENDOR}%25{PACKAGER} == %{DISTRIBUTION} %{DISTTAG}\n" \
| sort | cut --fields="2-" | tee rpmlist | less -S


The repo can sometimes be deduced.


--
Cheers / Saludos,

Carlos E. R.
(from 42.2 x86_64 "Malachite" at Telcontar)

< Previous Next >
This Thread