I am going to use LibreOffice for command line file format conversion only, for example:
soffice --headless --convert-to doc --outdir D:\output D:\input\filename.docx
The minimal LibreOffice installation is about 350 MB large. How could I install only the files that I really need?