Never tried it myself, but I believe this script will help GitHub - paolodepetrillo/raw2dng at dngpreprocess
Edit: Tried it now. Works.
I downloaded the source code and installed with:
cmake …
make
make install
Then I went to the folder to find dngpreprocess and run:
./dngpreprocess -3 rawfile.dng
It will demosaic the image and apply lens correction. I think AHD is the demosaicing method. The file size will increase a lot. If you put dngpreprocess in .local/bin in Linux you will be able to run the command from all folders.
DJI_0052.DNG (23.2 MB)
DJI_0052_pp.dng (47.7 MB)
And your own file here
DJI_0067_pp.dng (46.7 MB)