I have an RPM package with nearly 4000 files, and the installation of this takes considerable time. However, of those 4000 files, only a fixed list of 25 files change for each release.
My query:
Is it possible to build the RPM in such a way that it behaves differently during install and upgrade? This is what I intend to do.
- During install, all of the 4000 files are to be copied.
- During upgrade, only the 25 changed files get copied and not the remaining files (because they take a long time to be installed and they just overwrite the same files).
yum install your-package
pulls in both. – garethTheRed Dec 9 '14 at 12:28