I have this mid 2011 iMac 21.5" Core i5 on which I would like to install Linux (Debian) as the only OS, so I'd like to throw away the entire macOS installation. The web is full of tutorials for doing this, so, I think, this will be an "easy" step.
My problem is: what if in future I want to go back on macOS (e.g for selling the computer)?
I wonder if "OS X Recovery" (CMD + R) will work after the full Linux installation because I'll no longer be able to download macOS from Mac App Store and I have no installation CD.
The best solution I think could be: keep the recovery partition and install Linux on the rest of the disk, but can this be done? How?