On Mon, 11 Jan 2021 14:51:38 -0800 Kunal Mehta <lego...@debian.org> wrote: [...] > > The easiest and most foolproof way would be: > > # apt install mediawiki --no-install-recommends
Joseph has proposed a patch to FreedomBox's MediaWiki app to do just this. However, using --no-install-recommends is leading us to miss out some nice-to-have packages from the recommends list. php-gmp, for example, seems to be used on 32-bit machines for GUID generation and for finding unused blobs. php-wikidiff2 seems to be better at generating diffs than its built-in fallback. So, we will need to explicitly install the recommends list to be safe about not loosing some functionality. The problem with this is the handling of updates when a newer version of MediaWiki recommends a different list. [...] I propose a different solution: What if we add 'sqlite3' into the mix like this: 'default-mysql-server | virtual-mysql-server | postgresql-contrib | sqlite3'? This way, people wanting to use sqlite only (including FreedomBox) can run 'apt install mediawiki php-sqlite3 sqlite3' and get all the other recommends too. sqlite3 is, strictly speaking, not needed for functioning of MediaWiki with the sqlite3 DB because the package php-sqlite3 is sufficient. However, this 1.2MiB package is a (hackish) placeholder to avoid installing the other databases when installing with recommends. Let me know if this is acceptable. Thanks, -- Sunil