MKVMERGE: How to add subtitles to a mkv file

For that you'll need the package mkvtoolnix. Once it's installed, it's as simple as :

mkvmerge -o output.mkv input.mkv subtitles.srt