Applying "diff" to vanilla server

Hi,

Is it possible to “inspect” a Linux server which was customized, get a “diff”, and then apply that diff to a vanilla server?

Thanks!