2

Inside of an RPM I have

%{__install} %{SOURCE2} %{buildroot}

I believe that %{__install} is a macro. Where do I find where it is defined? What is the definition? Was it provided by the system or distro, or is it a core rpm thing?

Evan Carroll
  • 28,578
  • 45
  • 164
  • 290
  • Does https://unix.stackexchange.com/q/350842/117549 help? Also https://unix.stackexchange.com/q/145999/117549 – Jeff Schaller Nov 20 '19 at 00:23
  • `rpm --showrc | grep __install` will certainly show its definition. There is a `macros` file (among many others) in `/usr/lib/rpm` (usually): the definition can be found in there. – NickD Nov 20 '19 at 01:28

1 Answers1

2

Using __install as an example you can see where it's defined with

rpm --showrc | grep __install

Or you can see the definition with

rpm --eval "%{__install}"
Evan Carroll
  • 28,578
  • 45
  • 164
  • 290