Ask Your Question

how to install libreoffice macros via command line on CentOS?

asked 2015-08-19 22:44:05 +0200

Rapo gravatar image

updated 2015-08-20 10:52:22 +0200

Alex Kemp gravatar image

Below are the LibreOffice version details I'm using. I need help with a command that lets me install macro from command line.

Name: libreoffice Arch: x86_64 Epoch: 1 Version: Release: 11.el6

OS Name: CentOS Distributor ID: CentOS Description: CentOS release 6.6 (Final) Release: 6.6

[Edit: added CentOS6.6 + lo4.2.8 tags]

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2015-08-20 13:41:55 +0200

karolus gravatar image

something like:

cd /path/to/your/userconfig_backup 
cp -r basic ~/.config/libreoffe/4/user/basic
edit flag offensive delete link more


Hi Karolus,

Could you be more specific of what you are trying to say. I meant when you say userconfig_backup do you mean the path to my macro file??

And should I just copy my file to that location??

Rapo gravatar imageRapo ( 2015-08-20 17:37:01 +0200 )edit

Awesome I got it. I understood what was happening here. Thanks for the input Karolus :)

Rapo gravatar imageRapo ( 2015-08-20 18:09:16 +0200 )edit

answered 2015-08-20 10:50:13 +0200

Alex Kemp gravatar image

updated 2015-08-20 11:06:27 +0200


I've used/administered CentOS extensively for 10+ years. On a server. Here is the best that I can think of for you. Note that 'soffice.bin' is the prime executable for LO. Note also that there is a great deal more output than I have shown.

:~$ locate soffice.bin
:~$ /opt/libreoffice5.0/program/soffice.bin --help
LibreOffice 437e4abdf9e72fd0a6e6f8697a0e659bc77f9b10

Usage: soffice [options] [documents...]

--minimized    keep startup bitmap minimized.
--invisible    no startup screen, no default document and no UI.
--norestore    suppress restart/restore after fatal errors.
--quickstart   starts the quickstart service
--nologo       don't show startup screen.
--nolockcheck  don't check for remote instances using the installation
--nodefault    don't start with an empty document
--headless     like invisible but no user interaction at all.
--help/-h/-?   show this message and exit.
--version      display the version information.
--writer       create new text document.
--calc         create new spreadsheet document.
--draw         create new drawing.
--impress      create new presentation.
--base         create new database.
--math         create new formula.
--global       create new global document.
--web          create new HTML document.
-o             open documents regardless whether they are templates or not.
-n             always open documents as new files (use as template).

I do not think that any of the above will assist. To discover why, look at Q35598 and the very full reply from Regina.

If this helps then please tick the answer (✔)

edit flag offensive delete link more


Hi Alex,

I tried to find or locate "soffice.bin" but I get this

find: `soffice.bin': No such file or directory

Is this "soffice" a package which comes by default with libreoffice or do we need to install it separately?

And I was also looking @ Q35598 and the full reply from Regina but as I'm working on a server I do not have a GUI to install the macros. So can we do that from command line.

Rapo gravatar imageRapo ( 2015-08-20 16:29:35 +0200 )edit

I take back I could locate the soffice.bin. But I still need to find way to install the macros...

Rapo gravatar imageRapo ( 2015-08-20 17:35:59 +0200 )edit

Thanks for the link to Regina's post and also the the stuff you posted I guess it helped me to figure out how thins work.. Thanks again Alex :)

Rapo gravatar imageRapo ( 2015-08-20 18:10:30 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2015-08-19 22:44:05 +0200

Seen: 899 times

Last updated: Aug 20 '15