Getting rpm update history with wildcarding

classic Classic list List threaded Threaded
22 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Getting rpm update history with wildcarding

Robert Moskowitz
I want to get history for all the pulseaudio components (to update my
audacity bug report at rpmfusion).

#rpm -q pulseaudio --last

produces

pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018 09:59:34
PM EDT

but

# rpm -q pulseaudio* --last

results in:

package                                       pulseaudio* is not installed

so how can I see all components, particularly when I don't know what
they are?

thanks

_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/OXWQZKQR5MSRHOPL2UXID3YIOSOLUATV/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Richard Shaw
On Thu, Jun 14, 2018 at 7:28 AM Robert Moskowitz <[hidden email]> wrote:
I want to get history for all the pulseaudio components (to update my
audacity bug report at rpmfusion).

#rpm -q pulseaudio --last

produces

pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018 09:59:34
PM EDT

but

# rpm -q pulseaudio* --last

results in:

package                                       pulseaudio* is not installed

so how can I see all components, particularly when I don't know what
they are?

To my knowledge, RPM doesn't keep a history in the database, it's more of a current state... But there are logs that probably have what you're looking for:

(sudo or as root)
# grep pulseaudio /var/log/dnf.rpm.*

Thanks,
Richard 

_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/DWOWB46EVPP4SB7VLRHNRTP7XECSPHLQ/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Ed Greshko
On 06/14/18 20:32, Richard Shaw wrote:

> On Thu, Jun 14, 2018 at 7:28 AM Robert Moskowitz <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     I want to get history for all the pulseaudio components (to update my
>     audacity bug report at rpmfusion).
>
>     #rpm -q pulseaudio --last
>
>     produces
>
>     pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018 09:59:34
>     PM EDT
>
>     but
>
>     # rpm -q pulseaudio* --last
>
>     results in:
>
>     package                                       pulseaudio* is not installed
>
>     so how can I see all components, particularly when I don't know what
>     they are?
>
>
> To my knowledge, RPM doesn't keep a history in the database, it's more of a current
> state... But there are logs that probably have what you're looking for:
>
> (sudo or as root)
> # grep pulseaudio /var/log/dnf.rpm.*
>
>
Of course one could also use the "dnf history" command.


--
Conjecture is just a conclusion based on incomplete information. It isn't a fact.


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/YUJBLP4AHM4RCV6MSUQ4LXLVWF5AGYAX/

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

Re: Getting rpm update history with wildcarding

Ahmad Samir
In reply to this post by Robert Moskowitz
On 14 June 2018 at 14:27, Robert Moskowitz <[hidden email]> wrote:

> I want to get history for all the pulseaudio components (to update my
> audacity bug report at rpmfusion).
>
> #rpm -q pulseaudio --last
>
> produces
>
> pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018 09:59:34 PM
> EDT
>
> but
>
> # rpm -q pulseaudio* --last
>

FWIW, to match using a wildcard you'd have to use `rpm -qa pulseaudio*`.

--
Ahmad Samir
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/BNUGDISDJDOX7G5NG26JABIA3HYDXVK2/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Robert Moskowitz


On 06/14/2018 09:08 AM, Ahmad Samir wrote:

> On 14 June 2018 at 14:27, Robert Moskowitz <[hidden email]> wrote:
>> I want to get history for all the pulseaudio components (to update my
>> audacity bug report at rpmfusion).
>>
>> #rpm -q pulseaudio --last
>>
>> produces
>>
>> pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018 09:59:34 PM
>> EDT
>>
>> but
>>
>> # rpm -q pulseaudio* --last
>>
> FWIW, to match using a wildcard you'd have to use `rpm -qa pulseaudio*`.

Don't think so:

# `rpm -qa pulseaudio*`
bash: pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64: command not found

_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/N75RBSOKHYXKFAF746IDQ74HJS4OZEYB/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Richard Shaw
On Thu, Jun 14, 2018 at 8:55 AM Robert Moskowitz <[hidden email]> wrote:

On 06/14/2018 09:08 AM, Ahmad Samir wrote:
> On 14 June 2018 at 14:27, Robert Moskowitz <[hidden email]> wrote:
>> I want to get history for all the pulseaudio components (to update my
>> audacity bug report at rpmfusion).
>>
>> #rpm -q pulseaudio --last
>>
>> produces
>>
>> pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018 09:59:34 PM
>> EDT
>>
>> but
>>
>> # rpm -q pulseaudio* --last
>>
> FWIW, to match using a wildcard you'd have to use `rpm -qa pulseaudio*`.

Don't think so:

# `rpm -qa pulseaudio*`
bash: pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64: command not found

Don't include the tick marks, it tried to execute what's inside... What he means is that rpm doesn't accept wildcards so if you want to find partial matches, you need to pipe it to grep...

# rpm -qa | grep pulseaudio

Richard 

_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/3GJOZNIBMUT4VIMI3IM33RPXW7IB56KS/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Tony Nelson
On 18-06-14 09:57:33, Richard Shaw wrote:

> On Thu, Jun 14, 2018 at 8:55 AM Robert Moskowitz <[hidden email]>
> wrote:
>
> >
> > On 06/14/2018 09:08 AM, Ahmad Samir wrote:
> > > On 14 June 2018 at 14:27, Robert Moskowitz <[hidden email]>  
> wrote:
> > >> I want to get history for all the pulseaudio components (to  
> update my
> > >> audacity bug report at rpmfusion).
> > >>
> > >> #rpm -q pulseaudio --last
> > >>
> > >> produces
> > >>
> > >> pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018  
> 09:59:34
> > PM
> > >> EDT
> > >>
> > >> but
> > >>
> > >> # rpm -q pulseaudio* --last
> > >>
> > > FWIW, to match using a wildcard you'd have to use `rpm -qa  
> pulseaudio*`.
> >
> > Don't think so:
> >
> > # `rpm -qa pulseaudio*`
> > bash: pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64: command  
> not found
> >
>
> Don't include the tick marks, it tried to execute what's inside...  
> What he
> means is that rpm doesn't accept wildcards so if you want to find  
> partial
> matches, you need to pipe it to grep...
>
> # rpm -qa | grep pulseaudio

That is not what he means.  Would one of you please look at the RPM
man page?

--
____________________________________________________________________
TonyN.:'                       <mailto:[hidden email]>
       '                              <http://www.georgeanelson.com/>
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/HC2M374RC773Q6RHCTBVHRW5GHBJK7CB/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Todd Zullinger
In reply to this post by Richard Shaw
Richard Shaw wrote:

> On Thu, Jun 14, 2018 at 8:55 AM Robert Moskowitz <[hidden email]>
> wrote:
>
>>
>> On 06/14/2018 09:08 AM, Ahmad Samir wrote:
>>> FWIW, to match using a wildcard you'd have to use `rpm -qa pulseaudio*`.
>>
>> Don't think so:
>>
>> # `rpm -qa pulseaudio*`
>> bash: pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64: command not found
>
> Don't include the tick marks, it tried to execute what's inside... What he
> means is that rpm doesn't accept wildcards so if you want to find partial
> matches, you need to pipe it to grep...
>
> # rpm -qa | grep pulseaudio
I don't think Ahmad was saying that "rpm doesn't accept
wildcards" at all.  Quite the opposite; rpm accepts
wildcards, and has for as long as I can remember.

$ rpm -qa 'pulseaudio*'
pulseaudio-gdm-hooks-11.1-15.fc27.x86_64
pulseaudio-utils-11.1-15.fc27.x86_64
pulseaudio-module-x11-11.1-15.fc27.x86_64
pulseaudio-11.1-15.fc27.x86_64
pulseaudio-libs-glib2-11.1-15.fc27.x86_64
pulseaudio-module-bluetooth-11.1-15.fc27.x86_64
pulseaudio-libs-11.1-15.fc27.x86_64

You need to use the -a / --all option when querying with a
glob, e.g. rpm -qa 'foo*' instead of rpm -q 'foo*'.

Whether you prefer to use a glob or pipe to grep is a matter
of preference in most cases.  I try to avoid pipes when they
aren't needed out of habit, but the difference in characters
typed or performance is negligable.  The rpm globbing
support is quite limited, so if you need a more flexible
search string, then grep wins.

One thing note when passing globs to commands like this is
that it's important to quote or escape the glob to prevent
the shell from expanding it.  So either of these work:

    rpm -qa 'pulseaudio*'
    rpm -qa pulseaudio\*

It also works without the quotes as long as you don't have
anything which matches pulseaudio* in the directory where
you run the command.  That lulls many people into complaceny
and then they're surprised when they run it somewhere the
glob is exapnded by the shell and the command behaves
differently.  It's a good habit to always protect those
globs from the shell.

--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You will never find time for anything.  If you want time you must make
it.
    -- Charles Buxton


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/HXV4SP55ZT5XOSCOWTMDFOGBY2VOGFZF/

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

Re: Getting rpm update history with wildcarding

Todd Zullinger
In reply to this post by Tony Nelson
Tony Nelson wrote:
> That is not what he means.  Would one of you please look
> at the RPM man page?

To be fair, I don't think the rpm man page documents its
wildcard support.  If it does, I'm looking past it.

--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From there to here, from here to there, funny things are everywhere.
    -- Dr. Seuss, One Fish Two Fish, Red Fish Blue Fish


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/KKFMXACCE5QA76XITB34N75ZVHC6YG2T/

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

Re: Getting rpm update history with wildcarding

Ed Greshko-2
In reply to this post by Tony Nelson
On 06/14/18 22:23, Tony Nelson wrote:
> That is not what he means.  Would one of you please look at the RPM
> man page?


Sure....

       --last Orders the package listing by install time such  that  the  latest
              packages are at the top.

which has nothing to do with "history". 

If, as the OP suggests, he wishes to know the history of when packages named
pulseaudio* were updated he may run into a problem if he wasn't consistent in the
apps used to perform updates.  First of all, rpm doesn't keep a history of updates. 
He can then run into a problem if he used dnf for some and packagekit utilities for
others.  FWIW, there is a bugzilla requesting that the history recording of those be
unified.

Let's try not to get sidetracked by when/how name expansion is done.

[root@meimei ~]# dnf history list pulseaudio*
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
   251 | --refresh upgrade        | 2018-05-18 08:01 | Update         |    9  
   233 | system-upgrade upgrade   | 2018-05-06 07:53 | D, E, I, O, U  | 2860 EE
   152 | --refresh upgrade        | 2018-03-14 22:01 | E, I, U        |  159 EE
     2 | update                   | 2017-12-21 10:05 | I, O, U        |  654 EE
     1 |                          | 2017-11-05 15:25 | Install        | 1717 EE


Gets me transactions where pulseaudio* was involved. 

--
Conjecture is just a conclusion based on incomplete information. It isn't a fact.

_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/AIMKT6V4M2XOV25EZBT2IM3XY3OOCOW4/

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

Re: Getting rpm update history with wildcarding

Robert Moskowitz
In reply to this post by Richard Shaw


On 06/14/2018 09:57 AM, Richard Shaw wrote:
On Thu, Jun 14, 2018 at 8:55 AM Robert Moskowitz <[hidden email]> wrote:

On 06/14/2018 09:08 AM, Ahmad Samir wrote:
> On 14 June 2018 at 14:27, Robert Moskowitz <[hidden email]> wrote:
>> I want to get history for all the pulseaudio components (to update my
>> audacity bug report at rpmfusion).
>>
>> #rpm -q pulseaudio --last
>>
>> produces
>>
>> pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018 09:59:34 PM
>> EDT
>>
>> but
>>
>> # rpm -q pulseaudio* --last
>>
> FWIW, to match using a wildcard you'd have to use `rpm -qa pulseaudio*`.

Don't think so:

# `rpm -qa pulseaudio*`
bash: pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64: command not found

Don't include the tick marks, it tried to execute what's inside... What he means is that rpm doesn't accept wildcards so if you want to find partial matches, you need to pipe it to grep...

# rpm -qa | grep pulseaudio

But that does not give me the update history.  Going to have to pipe this output into something else

# rpm -qa | grep pulseaudio
pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64
pulseaudio-module-x11-11.1-18.fc28.1.x86_64
pulseaudio-libs-glib2-11.1-18.fc28.1.x86_64
pulseaudio-utils-11.1-18.fc28.1.x86_64
xfce4-pulseaudio-plugin-0.4.1-1.fc28.x86_64
pulseaudio-libs-11.1-18.fc28.1.x86_64
pulseaudio-11.1-18.fc28.1.x86_64
alsa-plugins-pulseaudio-1.1.6-3.fc28.x86_64



_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/HQKDNDBUMGSBJ5G35WV5VU5N33XA2LDQ/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Robert Moskowitz
In reply to this post by Ed Greshko-2


On 06/14/2018 10:54 AM, Ed Greshko wrote:

> On 06/14/18 22:23, Tony Nelson wrote:
>> That is not what he means.  Would one of you please look at the RPM
>> man page?
>
> Sure....
>
>         --last Orders the package listing by install time such  that  the  latest
>                packages are at the top.
>
> which has nothing to do with "history".
>
> If, as the OP suggests, he wishes to know the history of when packages named
> pulseaudio* were updated he may run into a problem if he wasn't consistent in the
> apps used to perform updates.  First of all, rpm doesn't keep a history of updates.
> He can then run into a problem if he used dnf for some and packagekit utilities for
> others.  FWIW, there is a bugzilla requesting that the history recording of those be
> unified.
>
> Let's try not to get sidetracked by when/how name expansion is done.
>
> [root@meimei ~]# dnf history list pulseaudio*
> ID     | Command line             | Date and time    | Action(s)      | Altered
> -------------------------------------------------------------------------------
>     251 | --refresh upgrade        | 2018-05-18 08:01 | Update         |    9
>     233 | system-upgrade upgrade   | 2018-05-06 07:53 | D, E, I, O, U  | 2860 EE
>     152 | --refresh upgrade        | 2018-03-14 22:01 | E, I, U        |  159 EE
>       2 | update                   | 2017-12-21 10:05 | I, O, U        |  654 EE
>       1 |                          | 2017-11-05 15:25 | Install        | 1717 EE
>
>
> Gets me transactions where pulseaudio* was involved.

Ah, I left off the 'list' portion of your command

# dnf history list pulseaudio*
ID     | Command line             | Date and time    | Action(s)      | Altered
-------------------------------------------------------------------------------
      2 | update                   | 2018-05-24 21:54 | I, U           |  341 EE
      1 |                          | 2018-05-24 21:07 | Install        | 1593 EE

Of course it does not tell me WHAT was updated in #2.

But then all of this is before I hit the problems with audacity so I can report that I am up to date on it...

_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/OAZACABBI6H6MQB3EJJVICU6MRDPT2AY/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Todd Zullinger
In reply to this post by Robert Moskowitz
Robert Moskowitz wrote:

> On 06/14/2018 09:57 AM, Richard Shaw wrote:
>> Don't include the tick marks, it tried to execute what's inside... What
>> he means is that rpm doesn't accept wildcards so if you want to find
>> partial matches, you need to pipe it to grep...
>>
>> # rpm -qa | grep pulseaudio
>
> But that does not give me the update history.  Going to have to pipe this
> output into something else
>
> # rpm -qa | grep pulseaudio
> pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64
> pulseaudio-module-x11-11.1-18.fc28.1.x86_64
> pulseaudio-libs-glib2-11.1-18.fc28.1.x86_64
> pulseaudio-utils-11.1-18.fc28.1.x86_64
> xfce4-pulseaudio-plugin-0.4.1-1.fc28.x86_64
> pulseaudio-libs-11.1-18.fc28.1.x86_64
> pulseaudio-11.1-18.fc28.1.x86_64
> alsa-plugins-pulseaudio-1.1.6-3.fc28.x86_64
You want to use dnf history, as Ed has said already.

    dnf history list 'pulseaudio*'

You can get further details on each transaction with 'dnf
info' using the transaction ID which 'dnf history list'
inlcudes.  Refer to the dnf man page for details on the dnf
history command.

--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any clod can have the facts; having opinions is an art.
    -- Charles McCabe


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/KFU5CDKKOQ7LUEAJTDPC5NVBQS5L2YCH/

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

Re: Getting rpm update history with wildcarding

Todd Zullinger
In reply to this post by Robert Moskowitz
Robert Moskowitz wrote:

> Ah, I left off the 'list' portion of your command
>
> # dnf history list pulseaudio*
> ID     | Command line             | Date and time    | Action(s)      | Altered
> -------------------------------------------------------------------------------
>      2 | update                   | 2018-05-24 21:54 | I, U           |  341 EE
>      1 |                          | 2018-05-24 21:07 | Install        | 1593 EE
>
> Of course it does not tell me WHAT was updated in #2.
>
> But then all of this is before I hit the problems with audacity so I can report that I am up to date on it...
Use 'dnf history info 2' to get further details on the
transaction.  The usage of dnf history is covered in the dnf
man page.

--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Life may have no meaning. Or even worse, it may have a meaning of
which I disapprove.
    -- Ashleigh Brilliant


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/OUHEBJM7PGPOL3REHW67M42LOPFGIZB7/

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

Re: Getting rpm update history with wildcarding

Rick Stevens-3
In reply to this post by Robert Moskowitz
On 06/14/2018 09:23 AM, Robert Moskowitz wrote:

>
>
> On 06/14/2018 09:57 AM, Richard Shaw wrote:
>> On Thu, Jun 14, 2018 at 8:55 AM Robert Moskowitz <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>>
>>     On 06/14/2018 09:08 AM, Ahmad Samir wrote:
>>     > On 14 June 2018 at 14:27, Robert Moskowitz <[hidden email]
>>     <mailto:[hidden email]>> wrote:
>>     >> I want to get history for all the pulseaudio components (to
>>     update my
>>     >> audacity bug report at rpmfusion).
>>     >>
>>     >> #rpm -q pulseaudio --last
>>     >>
>>     >> produces
>>     >>
>>     >> pulseaudio-11.1-18.fc28.1.x86_64              Thu 24 May 2018
>>     09:59:34 PM
>>     >> EDT
>>     >>
>>     >> but
>>     >>
>>     >> # rpm -q pulseaudio* --last
>>     >>
>>     > FWIW, to match using a wildcard you'd have to use `rpm -qa
>>     pulseaudio*`.
>>
>>     Don't think so:
>>
>>     # `rpm -qa pulseaudio*`
>>     bash: pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64: command
>>     not found
>>
>>
>> Don't include the tick marks, it tried to execute what's inside...
>> What he means is that rpm doesn't accept wildcards so if you want to
>> find partial matches, you need to pipe it to grep...
>>
>> # rpm -qa | grep pulseaudio
>
> But that does not give me the update history.  Going to have to pipe
> this output into something else
>
> # rpm -qa | grep pulseaudio
> pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64
> pulseaudio-module-x11-11.1-18.fc28.1.x86_64
> pulseaudio-libs-glib2-11.1-18.fc28.1.x86_64
> pulseaudio-utils-11.1-18.fc28.1.x86_64
> xfce4-pulseaudio-plugin-0.4.1-1.fc28.x86_64
> pulseaudio-libs-11.1-18.fc28.1.x86_64
> pulseaudio-11.1-18.fc28.1.x86_64
> alsa-plugins-pulseaudio-1.1.6-3.fc28.x86_64

Again, as other have said, rpm does NOT maintain a history. It queries
the rpm database of what packages are installed and that's it.

dnf and yum maintain histories (I believe packagekit does as well), but
they're accessed in different ways.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    [hidden email] -
- AIM/Skype: therps2        ICQ: 226437340           Yahoo: origrps2 -
-                                                                    -
-    Overweight:  When you step on your dog's tail...and it dies.    -
----------------------------------------------------------------------
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/KIEZIGZ3Q5VRXK4YAYDJVJ3LEUXK24EB/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Fedora mailing list
In reply to this post by Todd Zullinger
Allegedly, on or about 14 June 2018, Todd Zullinger sent:
> To be fair, I don't think the rpm man page documents its
> wildcard support.  If it does, I'm looking past it.

I've always successfully done things like this:

rpm -qa \*pulse\*

More through force of habit, than any hard knowledge.

--
[tim@localhost ~]$ uname -rsvp
Linux 4.16.11-100.fc26.x86_64 #1 SMP Tue May 22 20:02:12 UTC 2018 x86_64

Boilerplate:  All mail to my mailbox is automatically deleted.
There is no point trying to privately email me, I only get to see
the messages posted to the mailing list.

If you are not the intended recipient, why are you reading their email?
You bastard!
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/3F3A3F4WAGTUYPN5E45OJEDROSPERSYQ/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Todd Zullinger
Tim via users wrote:
> Allegedly, on or about 14 June 2018, Todd Zullinger sent:
>> To be fair, I don't think the rpm man page documents its
>> wildcard support.  If it does, I'm looking past it.
>
> I've always successfully done things like this:
>
> rpm -qa \*pulse\*
>
> More through force of habit, than any hard knowledge.

Yeah.  That's worked for as long as I can remember.  I just
noticed while looking at the man page that it's apparently
not documented. :)

--
Todd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It's not denial. I'm just very selective about what I accept as
reality.
    -- Calvin ("Calvin and Hobbes")


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/KYWD44YZQUIPCNLCCPLHPKFNSM3E33BU/

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

Re: Getting rpm update history with wildcarding

Patrick O'Callaghan
On Fri, 2018-06-15 at 01:44 -0400, Todd Zullinger wrote:

> Tim via users wrote:
> > Allegedly, on or about 14 June 2018, Todd Zullinger sent:
> > > To be fair, I don't think the rpm man page documents its
> > > wildcard support.  If it does, I'm looking past it.
> >
> > I've always successfully done things like this:
> >
> > rpm -qa \*pulse\*
> >
> > More through force of habit, than any hard knowledge.
>
> Yeah.  That's worked for as long as I can remember.  I just
> noticed while looking at the man page that it's apparently
> not documented. :)

Weird. I've always used that. Probably worth a BZ report.

I wonder what else is undocumented ...

poc
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/M6VPIPFM27HCZSI4XEKORX6KUSQP7G5D/
Reply | Threaded
Open this post in threaded view
|

Re: Getting rpm update history with wildcarding

Ed Greshko
In reply to this post by Todd Zullinger
On 06/15/18 13:44, Todd Zullinger wrote:

> Tim via users wrote:
>> Allegedly, on or about 14 June 2018, Todd Zullinger sent:
>>> To be fair, I don't think the rpm man page documents its
>>> wildcard support.  If it does, I'm looking past it.
>> I've always successfully done things like this:
>>
>> rpm -qa \*pulse\*
>>
>> More through force of habit, than any hard knowledge.
> Yeah.  That's worked for as long as I can remember.  I just
> noticed while looking at the man page that it's apparently
> not documented. :)
[egreshko@meimei ~]$ rpm -qa pulse*
pulseaudio-11.1-18.fc28.1.x86_64
pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64
pulseaudio-module-x11-11.1-18.fc28.1.x86_64
pulseaudio-libs-11.1-18.fc28.1.x86_64
pulseaudio-libs-glib2-11.1-18.fc28.1.x86_64
pulseaudio-utils-11.1-18.fc28.1.x86_64

[egreshko@meimei ~]$ rpm -qa *pulse*
pulseaudio-11.1-18.fc28.1.x86_64
pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64
alsa-plugins-pulseaudio-1.1.6-3.fc28.x86_64
pulseaudio-module-x11-11.1-18.fc28.1.x86_64
pulseaudio-libs-11.1-18.fc28.1.x86_64
kde-settings-pulseaudio-28.0-2.fc28.noarch
pulseaudio-libs-glib2-11.1-18.fc28.1.x86_64
pulseaudio-utils-11.1-18.fc28.1.x86_64

Works fine here.  No escaping needed.  Not that it matters



--
Conjecture is just a conclusion based on incomplete information. It isn't a fact.


_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/T7UPHFRHBMJK5FEYJWEUK6AW2GORZE5U/

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

Re: Getting rpm update history with wildcarding

Patrick O'Callaghan
On Fri, 2018-06-15 at 18:01 +0800, Ed Greshko wrote:

> On 06/15/18 13:44, Todd Zullinger wrote:
> > Tim via users wrote:
> > > Allegedly, on or about 14 June 2018, Todd Zullinger sent:
> > > > To be fair, I don't think the rpm man page documents its
> > > > wildcard support.  If it does, I'm looking past it.
> > >
> > > I've always successfully done things like this:
> > >
> > > rpm -qa \*pulse\*
> > >
> > > More through force of habit, than any hard knowledge.
> >
> > Yeah.  That's worked for as long as I can remember.  I just
> > noticed while looking at the man page that it's apparently
> > not documented. :)
>
> [egreshko@meimei ~]$ rpm -qa pulse*
> pulseaudio-11.1-18.fc28.1.x86_64
> pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64
> pulseaudio-module-x11-11.1-18.fc28.1.x86_64
> pulseaudio-libs-11.1-18.fc28.1.x86_64
> pulseaudio-libs-glib2-11.1-18.fc28.1.x86_64
> pulseaudio-utils-11.1-18.fc28.1.x86_64
>
> [egreshko@meimei ~]$ rpm -qa *pulse*
> pulseaudio-11.1-18.fc28.1.x86_64
> pulseaudio-module-bluetooth-11.1-18.fc28.1.x86_64
> alsa-plugins-pulseaudio-1.1.6-3.fc28.x86_64
> pulseaudio-module-x11-11.1-18.fc28.1.x86_64
> pulseaudio-libs-11.1-18.fc28.1.x86_64
> kde-settings-pulseaudio-28.0-2.fc28.noarch
> pulseaudio-libs-glib2-11.1-18.fc28.1.x86_64
> pulseaudio-utils-11.1-18.fc28.1.x86_64
>
> Works fine here.  No escaping needed.  Not that it matters

The escaping is a precaution. Your example wouldn't work if you had a
filename starting with 'pulse' in the current directory.

poc
_______________________________________________
users mailing list -- [hidden email]
To unsubscribe send an email to [hidden email]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@.../message/NFGCUFVDUBL2IQ52ZJVYEQAOAJ7STRUQ/
12