Pedro Lino wrote:
On 10/30/2020 10:29 PM Andrea Pescetti wrote:
$ sudo dpkg -i *.deb desktop-integration/*deb

I don't see why that would have different results.

Because the conflict you were seeing was due to a file being moved from a .deb to another one; with the 3 steps dpkg cannot gather this information and it will warn you that file XYZ belongs to a package you are not going to upgrade (you will do it in the third step, but dpkg cannot know you are going to do it); if you do it all in one step, dpkg is able to know that you are going to update all packages.

This isn't the best explanation, but if you re-read
https://bz.apache.org/ooo/show_bug.cgi?id=127774
it should be clearer.

The point is that all tutorials on the internet (including at oo.org) use the 3 
steps.

Tutorials use the 3 steps because historically there have been multiple packages in desktop-integration and you are supposed to use only one of them. I think the current DEB packages have only one, so

$ sudo dpkg -i *.deb desktop-integration/*.deb

will just pick it and work. RPM still have more than one, at least if I recall correctly.

Is there an apt command to do this? I can't find it in any tutorial.

Simply

$ apt install ./*.deb ./desktop-integration/*.deb

(prefixing with "./" forces it to use local packages, even though it will say it is "downloading" them).

While we tend to ship a self-contained set as much as possible, apt will do everything dpkg does (as it simply calls dpkg under the hood) plus downloading any needed dependencies.

Regards,
  Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org

Reply via email to