Recent

Author Topic: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)  (Read 2449 times)

ArminLinder

  • Sr. Member
  • ****
  • Posts: 314
  • Keep it simple.
Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« on: February 14, 2022, 05:43:57 pm »
On my Debian VM I currently have 2.2.0RC2/FPC 3.2.2 installed using sudo apt. I need to update to 2.2.0 release.

Unfortunately the wiki at https://wiki.freepascal.org/Installing_Lazarus_on_Linux  does not have anything to say about updates.

Who can give me instructions?

The initial install was, IIRC, via sudo apt-get install Lazarus. I tried sudo apt-get upgrade Lazarus, but it seems this command won't give me a 2.2.0, but a 2.0.12.

Thnx, Armin.
Lazarus 3.3.2 on Windows 7,10,11, Debian 10.8 "Buster", macOS Catalina, macOS BigSur, VMWare Workstation 15, Raspberry Pi

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2020
  • Former Delphi 1-7, 10.2 user
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #1 on: February 14, 2022, 11:14:42 pm »
Uninstall the current version (I'm guessing apt has a facility to do this - I'm not a Linux user).

Install from source following the Wiki instructions because, from what I've read, most (all?) Linux distribution repos are behind current FPC and Lazarus versions for various reasons.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #2 on: February 15, 2022, 12:41:08 am »
Just install the new one, it will overwrite the rc version and apt will update the database accordingly.

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

Zvoni

  • Hero Member
  • *****
  • Posts: 2319
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #3 on: February 15, 2022, 08:41:20 am »
And debian is especially notorious to lag behind current versions
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #4 on: February 15, 2022, 08:56:13 am »
And debian is especially notorious to lag behind current versions

It appears that the OP is using downloaded debs direct from FPC/lazarus, not the Debian ones.

By the way, if you feel brave, Debian Testing usually has a pretty up to date version, it is right up there at the moment.

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

Zvoni

  • Hero Member
  • *****
  • Posts: 2319
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #5 on: February 15, 2022, 09:18:30 am »
It appears that the OP is using downloaded debs direct from FPC/lazarus, not the Debian ones.

By the way, if you feel brave, Debian Testing usually has a pretty up to date version, it is right up there at the moment.

Davo
How do you figure that?
Quote
The initial install was, IIRC, via sudo apt-get install Lazarus.
There is no hint he installed from local deb's
Regards Debian being "up-to-date": I'll take your word for it, since i switched to Manjaro some 2-3 years ago
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #6 on: February 15, 2022, 11:16:02 am »
It appears that the OP is using downloaded debs direct from FPC/lazarus, not the Debian ones.
How do you figure that?

Because Nimral said he installed 2.2.0RC2 and that would imply Debian Unstable or Testing, unlikely.  It was most certainly not Bullseye, the standard Debian install right now.  So, yes, its possible he is using Testing in a VM . But if he is, my suggestion would still be the right one, more through good luck than anything else ;-)  https://packages.debian.org/bookworm/lazarus-ide

Oh, thats interesting - Debian Bullseye Backports also has 2.2.0 too ! - I would still recommend getting the debs from FPC/Lazarus site.

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

Zvoni

  • Hero Member
  • *****
  • Posts: 2319
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #7 on: February 15, 2022, 11:26:05 am »
Oh, thats interesting - Debian Bullseye Backports also has 2.2.0 too ! - I would still recommend getting the debs from FPC/Lazarus site.

Davo
Definitely!
OTOH, in OP's case (independent if it's testing in VM or wherever else), i'd use fpcupdeluxe, select the "generic" branch (stable, fixes or main), and fire!
that way i can stay current with updates without having to juggle different Lazarus-versions each with its own config
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Updating Lazarus 2.2.0RC2 --> 2.2.0 (together with latest FPC)
« Reply #8 on: February 15, 2022, 11:39:40 am »
OTOH, in OP's case (independent if it's testing in VM or wherever else), i'd use fpcupdeluxe, select the "generic" branch (stable, fixes or main), and fire!
that way i can stay current with updates without having to juggle different Lazarus-versions each with its own config

Ah, well, as an old System Admin and therefore, by definition a Control Freak, I want to see whats happening. So, my general recommendation is always build Lazarus from Source.  But OP asked about Debs.

fpcupdeluxe is good, I have used it for a microcontroller project where I could not be bothered working it all out myself. But for normal Lazarus installs source build is so easy and I can see where everything is.

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

 

TinyPortal © 2005-2018