2

I would appreciate your help with the following. I have a system (Centos 9 with additional repos) and I have a snapshot for its repo, it was installed from. Let's say it is BASE repo. Now I update it from several sources with dnf, so new versioned rpms appear and some are updated or removed. How can I get a list of RPMs that were used to update my system together with URLs so I could manage to update similar systems that were installed from BASE without network / downloading these update packages every time?

So basically I need a RPM diff between pre-updated system and updated one, so I could download update RPMs and install them.

Thank you

Mirimat
  • 25
  • 4

1 Answers1

2

Based on this answer you can get the history of dnf executions with the commands

dnf history

then you select which of the history ID you want to see in details with command:

dnf history info <ID>

and under Packages Altered you will see the package and the repo from where it is installed.

The you can download desired packages with command:

dnf download --resolve <package name>

If you decide to make a mirror of desired repo you can use command like:

dnf reposync --repoid=<ID of the repo> --destdir=<destination directory>

The destination directory must exist!

Romeo Ninov
  • 6,677