Recent

Author Topic: Online Package Manager  (Read 835876 times)

balazsszekely

  • Guest
Re: Online Package Manager
« Reply #735 on: February 20, 2017, 08:29:39 am »
@esvignolo, @lainz
     Thank you for the feedback. I know the update Column/Button is somewhat confusing. Initially, I only wanted a central repository + a tool to easily update the repository. Unfortunately this raises a few security issues. I don't want to go into the details since it was discussed many times before in this thread. So instead we choose the so called "Update" feature, which allows the package maintainer to easily notify a user about a new update. The update feature has at least two drawbacks, beside the confusion:
    1. You have to install the package from the central repository first. Although technically OPM can install directly from an update page, it's not allowed because of the possible unresolved dependency issues
    2. It's not 100% safe. I mean a package maintainer with bad intention, it can(at least in theory) install a malware, especially under windows
On the other hand the update feature also has a great advantage: it removes the workload from the central repository and pass it to the package maintainers, this way making the whole system sustainable in the long run.

Unifying the Install/Update button(@esvignolo suggestion) I'm not sure will solves the problem, in my opinion it will lead to even more confusion. The user will have no idea from where the package is installed(repository or update). Now at least you know(again I agree it's a little bit confusing), especially if your read the wiki page(section "Difference between download/install/update"): http://wiki.freepascal.org/Online_Package_Manager#Difference_between_download.2Finstall.2Fupdate

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: Online Package Manager
« Reply #736 on: February 20, 2017, 07:45:41 pm »
It's ok everything needs some user learning btw, is not too hard.

Edit: I know everything was discussed so keep going.
« Last Edit: February 20, 2017, 10:48:18 pm by lainz »

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: Online Package Manager
« Reply #737 on: February 24, 2017, 12:48:05 am »
Hi, I don't found On Line Package Manager on http://packages.lazarus-ide.org/ can you give me a direct download link?

Thank you.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Online Package Manager
« Reply #738 on: February 24, 2017, 01:19:44 am »
Check the wiki for how to get it: http://wiki.freepascal.org/Online_Package_Manager

Edit:
If it's not in ($LazarusDir)/components/onlinepackagemanager then you need to get it from SVN.
Go to ($LazarusDir)/components and run this command:
Code: Pascal  [Select][+][-]
  1. svn co http://svn.freepascal.org/svn/lazarus/trunk/components/onlinepackagemanager onlinepackagemanager

If it is there, skip the svn check out.

Now, open the package, compile it, and install it in the Lazarus Install Packages dialogue.

See the wiki  :)
« Last Edit: February 24, 2017, 01:28:38 am by jacmoe »
more signal - less noise

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: Online Package Manager
« Reply #739 on: February 24, 2017, 02:06:46 am »
Yes, I saw the wiki, but I don't use SVN, so, I need a  link to a for a zip if it is posible.

Thanks.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Online Package Manager
« Reply #740 on: February 24, 2017, 02:11:06 am »
Yes, I saw the wiki, but I don't use SVN, so, I need a  link to a for a zip if it is posible.
ftp://ftp.freepascal.org/pub/lazarus/snapshots/lazarus-1.7-54258-20170224-src.zip

or better yet (in order to not stress the ftp server), surf to https://github.com/graemeg/lazarus and press the download button.
« Last Edit: February 24, 2017, 02:13:50 am by molly »

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: Online Package Manager
« Reply #741 on: February 24, 2017, 02:40:13 am »
Yes, I saw the wiki, but I don't use SVN, so, I need a  link to a for a zip if it is posible.
ftp://ftp.freepascal.org/pub/lazarus/snapshots/lazarus-1.7-54258-20170224-src.zip

or better yet (in order to not stress the ftp server), surf to https://github.com/graemeg/lazarus and press the download button.

Thanks, but I only need Online Package Manager. I am using Lazarus 1.6 FCC 3.0.0.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Online Package Manager
« Reply #742 on: February 24, 2017, 02:49:15 am »
Yes, I saw the wiki, but I don't use SVN, so, I need a  link to a for a zip if it is posible.
ftp://ftp.freepascal.org/pub/lazarus/snapshots/lazarus-1.7-54258-20170224-src.zip

or better yet (in order to not stress the ftp server), surf to https://github.com/graemeg/lazarus and press the download button.

Thanks, but I only need Online Package Manager. I am using Lazarus 1.6 FCC 3.0.0.
OPM is part of Lazarus. There is no standalone download.

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Online Package Manager
« Reply #743 on: February 24, 2017, 02:54:57 am »
Yes, I saw the wiki, but I don't use SVN, so, I need a  link to a for a zip if it is posible.
ftp://ftp.freepascal.org/pub/lazarus/snapshots/lazarus-1.7-54258-20170224-src.zip

or better yet (in order to not stress the ftp server), surf to https://github.com/graemeg/lazarus and press the download button.

Thanks, but I only need Online Package Manager. I am using Lazarus 1.6 FCC 3.0.0.
OPM is part of Lazarus. There is no standalone download.
If 'Lazarus' means 'Lazarus trunk' then: yes.
If not - ie tagged or fixes ' then: no.
Not on my box, it isn't.

So, if the OP does not have trunk, then he must get the trunk of Lazarus, so that he can put OPM into his non-trunk Lazarus source tree. ;)
« Last Edit: February 24, 2017, 02:56:47 am by jacmoe »
more signal - less noise

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Online Package Manager
« Reply #744 on: February 24, 2017, 03:01:20 am »
@jacmoe:
I'll be more explicit then  :)
OPM is part of Lazarus 1.7. There is no standalone download.

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Online Package Manager
« Reply #745 on: February 24, 2017, 03:06:49 am »
@molly: I know that. But since GAN is using 1.6, he must grab the 'onlinepackagemanager' directory from the source of Lazarus 1.7 (trunk).
I think it is really great that OPM is part of Lazarus now. :D

I am using 1.6.3 and had to check out the opm package directory (from the trunk) too.

You are right: there is no standalone download. And there will never be one, because it is part of Lazarus 1.7 onwards.

The easiest for GAN would be to simply install subversion and do a check out of that directory.
That's the option that is smallest, and takes the least amount of bandwidth.
« Last Edit: February 24, 2017, 03:16:37 am by jacmoe »
more signal - less noise

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: Online Package Manager
« Reply #746 on: February 24, 2017, 03:13:03 am »
@jacmoe:
And... i understand that  :)

It's GAN who did not got the message.

It would be the same as asking for a separate download for TLabel component. It is part of lazarus so download lazarus in order to get it ;-)

(and in the particular case of OPM you would need lazarus trunk sources for that, exactly where my links pointed to).

fyi: OPM did start out with its own repository.
« Last Edit: February 24, 2017, 03:14:36 am by molly »

jacmoe

  • Full Member
  • ***
  • Posts: 249
    • Jacmoe's Cyber SoapBox
Re: Online Package Manager
« Reply #747 on: February 24, 2017, 03:20:40 am »
I did exactly the same thing here -> http://forum.lazarus.freepascal.org/index.php/topic,34297.msg238533.html#msg238533
I had Lazarus 1.6.3 (IIRC) and just checked out onlinepackagemanager from trunk into lazarus_1.6.3_source/components/onlinepackagemanager.
So, he must install subversion if he wants the easiest method.
Or, alternatively, download the zip ball from Github, extract it and copy the 'onlinepackagemanager' directory over to the components source directory.

Edit: I think we agree with each other, Molly  ;)
« Last Edit: February 24, 2017, 03:23:38 am by jacmoe »
more signal - less noise

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: Online Package Manager
« Reply #748 on: February 24, 2017, 05:27:17 am »
OK now I understand, thanks for the explanation and sorry for my confusion.

Best regards.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

CharlyTango

  • New Member
  • *
  • Posts: 46
Re: Online Package Manager - own config settings?
« Reply #749 on: March 08, 2017, 02:35:15 pm »
HI,

I'm facing the challenge to sync my the packages in different Lazarus installations  between two desktops and a notebook.
Furthermore there are several Lazarus versions per desktop or notebook to sync.
Is there a possibility to tell OPM to use some kind of configuration file to install the same Packages into all my Lazarus installations without chosing the Packages by hand ?

I was thinking of a config file which is synched by Dropbox or others and every Lazarus installation installs the fitting versions of the needed packages ;)

THX in advance
Lazarus stable, Win32/64

 

TinyPortal © 2005-2018