Modify a thesaurus

How can I modify an existing thesaurus?

…by providing your OS + LO version first (edit the Q).