A few years ago, I demoed how to convert a "curl | bash" to an rpm.
Might be time to add this to fpm?
I think the rough steps are:
- Generate a simple docker file
docker build ... it
docker save the result
- Cherry-pick the latest layer (it's a tarfile) in the docker save
- Convert the tar to whatever format.
It's possible other tools might work for this as well, instead of docker, but we can start with docker.