Kiwix is probably the easiest / most readily available solution, but wikipedia runs on mediawiki which is also FOSS:
https://en.wikipedia.org/wiki/Mediawiki
https://www.mediawiki.org/wiki/Special:MyLanguage/Download
I’m guessing that most of the database download options provided by wikipedia itself should be compatible with a personal wikimedia installation:
deleted by creator