Installation of Dynare for Matlab (2024a) on Ubuntu 22.04

I am newbie in Dynare and thus will asking community for help:
We have been asked (as IT by our business users) to install Dynare (purely integrated with Matlab, not with GNU Octave) on Linux machine(Ubuntu 22.04) and Matlab 2024a installed .
I have found in documentation following reference for Linux (including Ubuntu) installation: https://www.dynare.org/manual/installation-and-configuration.html#on-gnu-linux
Which refers to installation from packages:
apt install dynare
apt install dynare-matlab
I have performed trial install on machine with Matlab 2024a installed, ate first glance without any issues, but I want to clarify couple of points:

  1. If I want to “integrate” Dynare just with Matlab (not with GNU Octave),do I have to install both packages: dynare and dynare-matlab or is it sufficient to install just dynare-matlab ?
  2. When checking what release/version of Dynare packages has been installed, it show me version 5:
dynare-matlab/jammy,now 5.0-1build1 all [installed]
dynare/jammy,now 5.0-1build1 amd64 [installed]

But current version seems to be 6.2. What should we do to install some more current version of Dynare on Ubuntu 22.04?
Use some alternative repository for installation ? Or perform compilation of Dynare from source (for example similar as described here: https://forum.dynare.org/t/compiling-and-running-dynare-on-a-linux-cluster-running-centos-or-rhel/18039) ?
Thanks very much for pointing me to the right (and most straightforward) path.
Michal

  1. The basic dynare package is for Octave. You need the dynare-matlab package for generating the mex-files for Matlab.
  2. The Dynare packages shipped in official distribution releases are a snapshot in time. More recent versions of Dynare are not backported (which would defeat the purpose of a distribution). Thus, if you want Dynare 6 on Ubuntu 22.04 you would need to build from source. The description is at Dynare / dynare · GitLab

Thanks Johanes for your prompt answer. Just to make sure for answer 1 : For Matlab we just have to install dynare-matlab package (dynare is not neccesary - as it is for Octave) - is my perception correct ?

No, you need to dynare to all the Matlab routines necessary. The dynare-matlab then adds the mex files for Matlab. That being said, that won’t be necessary if you build from source.