Tumbleweed - Review of the week 2018/03

classic Classic list List threaded Threaded
104 messages Options
1 ... 3456
Reply | Threaded
Open this post in threaded view
|

Re: btrfs /var changes

Stefan Seyfried
On 30.01.2018 10:56, Andrei Borzenkov wrote:

> On Tue, Jan 30, 2018 at 12:27 PM, Stefan Seyfried
> <[hidden email]> 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 ... ?

There is none.
But %{disturl} will give hintes that can help you to map to a local repo

or just find your most useful header with
rpm -qa --queryformat "$(rpm --querytags|sed 's/^\(.*\)$/%{NAME} \1: %{\1}/')\n"
--
Stefan Seyfried

"For a successful technology, reality must take precedence over
 public relations, for nature cannot be fooled." -- Richard Feynman
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: btrfs /var changes

Andreas Schwab-2
In reply to this post by Andrei Borzenkov
On Jan 30 2018, Andrei Borzenkov <[hidden email]> wrote:

> On Tue, Jan 30, 2018 at 12:27 PM, Stefan Seyfried
> <[hidden email]> 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}.

See
 <https://github.com/openSUSE/kiwi/blob/master/modules/KIWIImageCreator.pm#L940>.

Andreas.

--
Andreas Schwab, SUSE Labs, [hidden email]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: btrfs /var changes

Carlos E. R.-2
In reply to this post by Stephan Kulow-3
On 2018-01-30 09:41, Stephan Kulow wrote:
> On 01/30/2018 05:15 AM, Patrick Shanahan wrote:
>
>>
>> for i in list;do zypper in $i;done
>>
> Note that zypper can install multiple packages at once and
> in this case you really want to do that as there is a lot
> of overhead involved in calling zypper (refreshing repos and
> all that)

Absolutely, I was going to say that :-)

So parse the list, and produce one list per repo, then tell zypper to
install that list from that particular repo; repeat for each repo. I
don't know if it is possible to do in a single zypper call?

--
Cheers / Saludos,

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


signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: btrfs /var changes

Carlos E. R.-2
In reply to this post by Andreas Schwab-2
On 2018-01-30 11:33, Andreas Schwab wrote:

> On Jan 30 2018, Andrei Borzenkov <[hidden email]> wrote:
>
>> On Tue, Jan 30, 2018 at 12:27 PM, Stefan Seyfried
>> <[hidden email]> 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)


signature.asc (188 bytes) Download Attachment
1 ... 3456