Ask Your Question
1

list of recently updated packages with dnf ?

asked 2019-03-14 04:03:51 -0500

PGkt gravatar image

updated 2019-03-14 04:06:02 -0500

Is there a command that allows one to see a list of which packages were recently updated by running command sudo dnf update -y. I've already tried sudo dnf history but that's not the list I'm after.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
4

answered 2019-03-14 04:52:08 -0500

vmercuri gravatar image

updated 2019-03-14 07:48:18 -0500

The command sudo dnf history, as you may have already noticed, also lists actions by ID, which you can use to show further details, for example on my system:

sudo dnf history show 175

shows:

Transaction ID : 175
Begin time     : Wed 13 Mar 2019 02:33:41 PM CET
Begin rpmdb    : 7641:85d6060f6a29a36fefef35cb369c6ebae6f19e1d
End time       : Wed 13 Mar 2019 02:33:49 PM CET (8 seconds)
End rpmdb      : 7641:f60f4eebf4741a7b6426cd007d258a4674727800
User           : Vincenzo <vincenzo>
Return-Code    : Success
Releasever     : 29
Command Line   : upgrade --refresh
Packages Altered:
    Upgrade  authselect-1.0.3-1.fc29.x86_64                  @updates
    Upgraded authselect-1.0.2-2.fc29.x86_64                  @@System
    Upgrade  authselect-compat-1.0.3-1.fc29.x86_64           @updates
    Upgraded authselect-compat-1.0.2-2.fc29.x86_64           @@System 

...

As a quick alternative, you can also try with:

rpm -qa --last | less

then press Enter to scroll line by line and q to quit.

edit flag offensive delete link more

Comments

1

I find the keyword last very useful, you can also combine it with range as a parameter to inspect e.g. last five dnf transactions dnf history info last-4..last

https://docs.fedoraproject.org/en-US/fedora/f29/system-administrators-guide/package-management/DNF/#sec-DNF-Transaction_History

ozeszty gravatar imageozeszty ( 2019-03-14 16:57:29 -0500 )edit
0

answered 2019-03-15 17:28:12 -0500

tarik gravatar image

updated 2019-03-16 05:41:45 -0500

PGkt, peace be upon those who follow guidance

Try this sudo dnf list --recent

After @vmercuri comment I suggest the following:

sudo dnf history list  | awk -F'|' '$4 ~ /([ ]+U|Update)/{print}'
edit flag offensive delete link more

Comments

This only lists packages recently added into the repositories.

vmercuri gravatar imagevmercuri ( 2019-03-15 20:00:39 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-03-14 04:03:51 -0500

Seen: 88 times

Last updated: Mar 16