Difference between revisions of "Online Package Manager"

From Free Pascal wiki
(Download)
(Download)
Line 15: Line 15:
 
To get the latest version:
 
To get the latest version:
  
1 From command line
+
==== From command line ====
 
   Checkout: $ svn co <nowiki>http://svn.freepascal.org/svn/lazarus/trunk/components/onlinepackagemanager</nowiki> onlinepackagemanager
 
   Checkout: $ svn co <nowiki>http://svn.freepascal.org/svn/lazarus/trunk/components/onlinepackagemanager</nowiki> onlinepackagemanager
 
   Update: $ svn up
 
   Update: $ svn up
  
2 With a SVN client  
+
==== With a SVN client ====
 
   Checkout
 
   Checkout
 +
 
   [[File:OPM8.png]]
 
   [[File:OPM8.png]]
  
 
   Later update with
 
   Later update with
 +
 
   [[File:OPM9.png]]
 
   [[File:OPM9.png]]
  

Revision as of 10:47, 7 December 2016

About

Online Package Manager is a tool that automates the process of installing, upgrading, configuring Lazarus packages. The packages are stored in the main repository as zip files, along with a JSON file. The JSON contains all necessary information about the packages. On request the packages are downloaded/extracted/compiled/installed into the IDE.

Screenshot

OPM6.png

OPM7.png

License

GNU General Public License

Download

Online package manager is part of Lazarus sources, in directory ($LazarusDir)/components/onlinepackagemanager.

To get the latest version:

From command line

 Checkout: $ svn co http://svn.freepascal.org/svn/lazarus/trunk/components/onlinepackagemanager onlinepackagemanager
 Update: $ svn up

With a SVN client

 Checkout
 OPM8.png
 Later update with
 OPM9.png

System Requirements / Dependencies

  • FPC 3.0.0 or newer
  • Lazarus 1.6.0 or newer
  • These versions were available at the time of writing this update.
  • Tested on the following widgeset: win32/64, gtk2, carbon, qt(win)
  • The package manager does not depend on any external package

Installation

In Lazarus "Install/Uninstall Packages" window select "OnlinePackageManager" from the available packages, click "Install selection" and then rebuild the IDE.

Using the package manager

Getting started

Go to Lazarus Menu-->Package-->Online Package Manager. On startup the package manager will automatically download a list with available repository packages, the list is displayed in a tree(see screenshots above).

Filter the tree/Locate a package

OPM3.png

You can filter the package list by:

  • Packagename
  • Package file(.lpk)-->a repository package can contain multiple lpk files
  • Package category
  • Package status
  • Version
  • Description
  • Author
  • Lazarus compatibility
  • FPC compatibility
  • Supported widget sets
  • Packagetype
  • Dependencies
  • License

Operation with packages

OPM4.png

Refresh package list

Press the "Refresh" button to update the package list.

Download package

Check one or more package then press the "Download" button. This will download/extract the packages to a preselected directory. Nothing gets installed. Useful when you want to install the packages manually or study their sources without installing.

Install a package

Check one or more package then press the "Install" button. The package manager will automatically download/extract/compile/install the selected packages, then rebuild the IDE if necessary(Designtime/Designtime_and_runtime packages). Confirm the rebuild by clicking the "Yes" button. Please note: The compile feature is only available in Lazarus 1.7+.

Update a package

Check one or more package then press the "Update" button. The package manager will update the selected packages from the maintainer's homepage(if available):

OPM5.png

Please note: downloading/installing packages from external link is not without a risk. Only update the package if you trust the package maintainer.

Cleanup local repository

This operation will delete all non-installed packages/archives from the local repository. To cleanup the local repository press the "Cleanup" button.

Create repository package

To create a repository package press "Create repository package" menu item, then:

  • select the package main directory(package manager will recursively search for all package files inside the folder)
  • select the packages you wish to include
  • choose a category
  • adjust package info if necessary(lazarus/fpc compatibility, supported widgetset, etc)
  • press the create button

The whole process should take no longer then 1-2 min/ package. If all goes well you should get a zip and a json file. Upload somewhere the files and send the link to getmem1@gmail.com. Every package will be accepted after a short check(malware, license, etc). Multiple versions of the same package is also allowed.

Options

To display the options dialog press the "Options" button.