DariusFontaine
DariusFontaine

Reputation: 794

Can you use yum/dnf to install or remove RPMs using %posttrans in a spec file?

Reading the docs on %posttrans here:

https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/

It's not very clear what %posttrans actually does. When this is executed is the RPM lock still held by another process?

Upvotes: 0

Views: 293

Answers (1)

Chris Maes
Chris Maes

Reputation: 37712

Even if you could that would be bad practice. If you don't need other packages anymore when your package is installed, consider using Obsoletes or Conflicts to let the package manager do the installation/uninstallation of packages.

Upvotes: 1

Related Questions