Sign in Join
Wiki copytemporary

Online Package Manager/es: what changed

Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11## Acerca de
22
33Online Package Manager(OPM) es una utilidad que automatiza el proceso de instalación, actualización y configuración de los paquetes de Lazarus. Los paquetes se almacenan en el repositorio principal como fichero .zip (ver columna de repositorio), junto con su correspondiente fichero JSON. El fichero JSON contiene toda la información necesaria sobre los paquetes. Realizada la petición los paquetes son descargados/extraidos/compilados/instalados en el IDE. También es posible actualizar un paquete previamente instalado si hay disponible una versión más actualizada en la página web del mantenedor (ver columna update). Hay además disponible una versión del Repositorio de Paquetes de Lazarus en el siguiente enlace: <http://packages.lazarus-ide.org/>.
44
5-` `**`Please note:`**`  `\
6-` OPM lee la descripción del paquete a partir del fichero lpk. I can understand that the description of many packages is very minimalistic or even non-existent, but there is nothing I can do about it. `\
7-` It's not OK to modify package description or any other property for that matter, without the consent of the package developer. More over testing each and every package, then write a detailed `\
8-` description is not realistic.`
5+```text
6+ <span style="color:red">Please note:</span>
7+ OPM lee la descripción del paquete a partir del fichero lpk. I can understand that the description of many packages is very minimalistic or even non-existent, but there is nothing I can do about it.
8+ It's not OK to modify package description or any other property for that matter, without the consent of the package developer. More over testing each and every package, then write a detailed
9+ description is not realistic.
10+```
911
1012### Pantallazos
1113
1214![](/wiki-images/6/6e/OPM6.png)
1315
1416![](/wiki-images/b/b7/OPM7.png)
1517
1618### Licencia
1719
1820[GNU General Public License](https://opensource.org/licenses/gpl-license)
1921
2022### Descargas
2123
2224Online Package Manager (OPM) forma parte de las fuentes de Lazarus. Se encuentra en el directorio (\$LazarusDir)/components/onlinepackagemanager.
2325
2426### Requerimientos del sistema / Dependencias
2527
2628- FPC 3.0.0 o superior.
2729- Lazarus 1.8 o superior.
2830- Puedes descargar una versión más antigua para las series 1.6: [OPM 1.6](https://drive.google.com/open?id=0B9Me_c5onmWobVZOdVlXSlZRRmc)
2931- Estas versiones están disponibles a fecha de escritura de esta actualización.
3032- Testeado en los siguientes widgeset: win32/64, gtk2, carbon, qt(win)
3133- El gestor de paquetes no depende de otros paquetes externos.
3234
3335### Installation
3436
3537In Lazarus "Install/Uninstall Packages" window select "OnlinePackageManager" from the available packages, click "Install selection" and then rebuild the IDE.
3638
3739### Support page
3840
3941<http://forum.lazarus.freepascal.org/index.php/topic,34297.0.html>
4042
4143## Using the package manager
4244
4345### Getting started
4446
4547Go to Lazarus Menu--\>Package--\>Online Package Manager(Shortcut key: \[Ctrl\] + \[Alt\] + O). On startup the package manager will automatically download a list with available repository packages, the list is displayed in a tree(see screenshots above).
4648
4749### Filter the tree/Locate a package
4850
4951![](/wiki-images/b/b3/OPM3.png)
5052
5153You can filter the package list by:
5254
5355- Packagename
5456- Package file(.lpk)--\>a repository package can contain multiple lpk files
5557- Package category
5658- Package status
5759- Version
5860- Description
5961- Author
6062- Lazarus compatibility
6163- FPC compatibility
6264- Supported widget sets
6365- Packagetype
6466- Dependencies
6567- License
6668
6769### Operation with packages
6870
6971![](/wiki-images/a/a5/OPM4.png)
7072
7173#### Refresh package list
7274
7375Press the "Refresh" button to update the package list.
7476
7577#### Download package
7678
7779Check 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.
7880
7981#### Install a package
8082
8183Check one or more package then press the "Install" button. The package manager will automatically download/extract/compile/install the selected packages(from the main repository), 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+.
8284
8385#### Update a package
8486
8587Check one or more package then press the "Update" button. The package manager will update the selected packages from the maintainer's homepage(if available). The package must be installed first, a direct update although is possible, it's not allowed to prevent unresolved dependency error. **Please note:** downloading/installing packages from external link is not without a risk. Only update the package if you trust the package maintainer.
8688
8789#### Difference between download/install/update
8890
8991Download/Install --\> Operations between you and the main repository.
9092
9193Update --\> Operations between you and the package maintainers.
9294
9395![](/wiki-images/6/61/OPM10.png)
9496
9597Video link: [Difference between download/install/update](https://www.youtube.com/watch?v=wiN2GoCvgjc)
9698
9799#### Cleanup local repository
98100
99101This operation will delete all non-installed packages/archives from the local repository. To cleanup the local repository press the "Cleanup" button.
100102
101103#### Create
102104
103105*This section is for package maintainers. First you must go to Options--\>Profiles and select package maintainer.*
104106
105107##### Create repository package
106108
107109To create a repository package press "Create repository package" menu item, then:
108110
109111- select the package main directory(package manager will recursively search for all package files inside the folder)
110112- select the repository package(root node)
111113 - choose category(obligatory)
112114 - type display name(optional)
113115 - home page(optional)
114116 - update link(optional, for more details see "Create JSON for updates"[1](http://wiki.freepascal.org/Online_Package_Manager#Create_JSON_for_updates)" below)
115117 - create JSON for updates(optional), has the same functionality as "Create JSON for updates"[2](http://wiki.freepascal.org/Online_Package_Manager#Create_JSON_for_updates)" dialog. It was also added here to speed up the process.
116118
117119![](/wiki-images/6/6c/OPM15.png)
118120
119121- check each package you wish to include, adjust package info if necessary(lazarus/fpc compatibility, supported widgetset, etc)
120122
121123![](/wiki-images/6/6d/OPM16.png)
122124
123125- press the create button, 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 or
124126- press the submit button, the files are directly uploaded to a remote server.
125127
126128Every package will be accepted after a short check(malware, license, etc). Multiple versions of the same package is also allowed.
127129
128130##### Create JSON for updates
129131
130132To allow the user to update the package directly form your webpage, follow this steps:
131133
132134- Make sure your package is already in the main repository(see previous section)
133135- You can download and use the [[OPM External Update json Editor|Online Package Manager External Update json Editor]]
134136 - or via OnlinePackageManager:
135137
136138- Check the package, press the "Create JSON for upates" menu item then create the JSON.
137139
138140![](/wiki-images/d/d1/OPM11.png)
139141
140142- Edit the JSON, upload to your webpage, then send me the link.
141143
142144The JSON will look like this:
143145
144146![](/wiki-images/0/09/OPM12.png)
145147
146148Editable items in the JSON:
147149
148150**"DownloadZipURL"** --\> Link to your new, updated package
149151
150152**"DisableInOPM"** --\> If you want to temporary disable your package, set this boolean to true. It's useful for maintenance, the package will be grayed out in the tree. The user cannot download/install/update the package.
151153
152154**"Version"/"ForceNotify"/"InternalVersion"** --\> To trigger an update message on the users computer, you can either:
153155
154156- Increase the **"Version"** number. Useful when you want to release a new version of the package.
155157- Set **"ForceNotify"** to true. Useful after a minor change in your source, that does not require a version change or in case of trunk version. To prevent continous error messages, **"ForceNotify"** must be used in combination with **"InternalVersion"**. After the user updates the package, OPM locally stores the **"InternalVersion"** value. If you want to trigger a new message, increase **"InternalVersion"** with one. If **"ForceNotify"** is true, **"Version"** is always ignored.
156158
157159The most common scenario is this:
158160
159161- Generate the JSON
160162- Modify **"DownloadZipURL"**
161163- Increase version number when necessary.
162164
163165Please note: After you edited the JSON the changes are not immediately visible in the tree. Usually it takes 1-2 min. It also depends on the users setting(Options--\>General--\>Check for package updates).
164166
165167#### Options
166168
167169To display the options dialog press the "Options" button.
168170
169171### Create a private repository
170172
171173In order to create a private repository please do the following:
172174
1731751\. First make sure profile "Package maintainer" is enabled in Options--\>Profiles, then open the private repository form(see screenshot below)
174176
175177![](/wiki-images/b/b0/OPM17.png)
176178
1771792\. Press the "Create" button. Enter repository Name, Address(optional), Description(optional). Save the repository to an empty folder
178180
179181![](/wiki-images/c/c7/OPM18.png)
180182
181183- If filled, the repository address(in this case <http://localhost/packages/>) is automatically added to available repository list(Options form)
182184
183185![](/wiki-images/8/8e/OPM19.png)
184186
1851873\. Start to add/delete packages. You have two choices:
186188
187189a\. Create a new package via <http://wiki.freepascal.org/Online_Package_Manager#Create_repository_package>
188190
189191b\. Add a previously saved package
190192
191193![](/wiki-images/5/5b/OPM20.png)
192194
1931954.You can also open a previously saved repository. The last repository is automatically opened on startup.
194196
1951975.Upload the files(packagelist.json, *.zip) to your local or remote server.
196198
1971996.Make sure the server is running, the change "Remote repository" in Options--\>General
198200
199201---
200202*From the Free Pascal wiki, page "Online Package Manager/es", as it stood on 2019-10-12 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history