Recent

Author Topic: how to update lazarus 3.0 to 3.2  (Read 2279 times)

rcmz

  • Full Member
  • ***
  • Posts: 156
how to update lazarus 3.0 to 3.2
« on: March 22, 2024, 02:58:52 am »
hi,

how can I update from Lazarus 3.0 to 3.2 without the need to reinstall all the components and reconfigure the ide.

TIA
Ramiro

lainz

  • Hero Member
  • *****
  • Posts: 4743
  • Web, Desktop & Android developer
    • https://lainz.github.io/
Re: how to update lazarus 3.0 to 3.2
« Reply #1 on: March 22, 2024, 03:21:43 am »
It depends on how you have installed it.

Wich os?

In Windows if you just downloaded the setup just install it and rebuild the ide.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12547
  • Debugger - SynEdit - and more
    • wiki
Re: how to update lazarus 3.0 to 3.2
« Reply #2 on: March 22, 2024, 10:58:49 am »
how can I update from Lazarus 3.0 to 3.2 without the need to reinstall all the components and reconfigure the ide.

Configuration is stored in the "primary config path" wich defaults to ~/.lazarus or c:\users\name\AppData\Local\lazarus
This is kept if you install a new version. It is even kept if you delete the old (at least on windows the uninstaller does NOT remove this / the new installer offers to clean it, but just do not select this option).
You can always make backups of this.
(Usually you can downgrade and config will still work, but if the new IDE made changes, a backup may be handy / Also 3.0 should be able to read 3.2 configs)

Mind, some parts of the config may be sensitive to the install location. In case you change this. But even then, it would only be a few pathes to update, and all else would be kept.


Packages.

After an upgrade you have to rebuild the IDE once (ideally select "clean all" in "Tools > Configure build lazarus". And packages are all back.

Of course...
- Only if you keep all downloaded package sources (if they did not come with Lazarus) in the same place (the installer wouldn't change it / so if you don't, then its fine)
- If 3rd party packages are compatible (between minor versions such as 3.0 and 3.2 that is usually the case)


For all else, please add detailed info:
- Your OS
- The exact problem (error you get / name of package that fails)

dbannon

  • Hero Member
  • *****
  • Posts: 3850
    • tomboy-ng, a rewrite of the classic Tomboy
Re: how to update lazarus 3.0 to 3.2
« Reply #3 on: March 22, 2024, 12:19:18 pm »
If you built from source initially you can just put the new source in the same directory, run

>$ make bigide
>$ make useride

And, you get back everything, at least on Linux. I'd expect the same om MacOS and probably windows too.

This assume you end up using the same config directory, so, if you use the default config location or a lazarus.cfg file, that will ensure it know where to look. 

Davo
Lazarus 4, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

rcmz

  • Full Member
  • ***
  • Posts: 156
Re: how to update lazarus 3.0 to 3.2
« Reply #4 on: March 22, 2024, 08:16:26 pm »
Thx,

Will give it a try.

Ramiro

 

TinyPortal © 2005-2018