Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Thursday, December 30, 2021 at 17:55

This tutorial will explain how you can install a full Lazarus/Free Pascal software development kit of on Ubuntu Desktop. Lazarus is a visual programming tool to make graphical user interface applications in drag-and-drop ways and with Free Pascal it is often viewed as a complete Free Software alternative or replacement to Delphi. Now let's set it up!

Subscribe to UbuntuBuzz Telegram Channel to get article updates.

See also how to setup Gambas | Qt | GTK | GTK/C++


To install Lazarus/Free Pascal suite on Ubuntu, open up your Terminal and do command line below. On Ubuntu Impish, this downloads about 200 MB and needs free disk space about 1.5 GB.

$ sudo apt-get install fpc lazarus


  • fpc is Free Pascal, the compiler tool of Pascal programming language.
  • lazarus is the visual IDE for FreePascal. 

Free Pascal versions in multiple Ubuntu releases:

  • 3.0.4 on Ubuntu Bionic and Focal
  • 3.2.0 on Ubuntu Hirsute
  • 3.2.2 on Ubuntu Impish and Jammy

The Results 

The compiler can be invoked on the Terminal by command line.

The IDE (integrated development environment) can be run from the application menu. You should have a main window (top), a blank form (middle), a code window (right), and a list of components window (left). See picture below.

Happy hacking!