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

**URL:** <https://forum.dynare.org/t/installation-of-dynare-for-matlab-2024a-on-ubuntu-22-04/27019>\
**Category:** Installation and Setup\
**Created:** [10 January 2025 14:31 UTC](https://forum.dynare.org/t/installation-of-dynare-for-matlab-2024a-on-ubuntu-22-04/27019 "2025-01-10T14:31:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mich.zima](https://forum.dynare.org/user_avatar/forum.dynare.org/mich.zima/32/20441_2.png) [@mich.zima](https://forum.dynare.org/u/mich.zima)\
**Post date:** [10 January 2025 14:31 UTC](https://forum.dynare.org/t/installation-of-dynare-for-matlab-2024a-on-ubuntu-22-04/27019/1 "2025-01-10T14:31:19Z")

</div>

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](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:

```auto
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](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

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [10 January 2025 14:46 UTC](https://forum.dynare.org/t/installation-of-dynare-for-matlab-2024a-on-ubuntu-22-04/27019/2 "2025-01-10T14:46:35Z")

</div>

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](https://git.dynare.org/Dynare/dynare#building-dynare-from-source)

---

<div class="post-metadata">

**Author:** ![mich.zima](https://forum.dynare.org/user_avatar/forum.dynare.org/mich.zima/32/20441_2.png) [@mich.zima](https://forum.dynare.org/u/mich.zima)\
**Post date:** [10 January 2025 14:52 UTC](https://forum.dynare.org/t/installation-of-dynare-for-matlab-2024a-on-ubuntu-22-04/27019/3 "2025-01-10T14:52:12Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [10 January 2025 14:56 UTC](https://forum.dynare.org/t/installation-of-dynare-for-matlab-2024a-on-ubuntu-22-04/27019/4 "2025-01-10T14:56:21Z")

</div>

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.
