How to add extensions to libreoffice, my system is Linux CentOS

My operating system is Linux CentOS.

I want to install a Export As Images extension for my libreoffice program.

I did not find relevant content in the help document.

help me…

My operating system is a command line with no interface.

I found the command to install extensions.

/usr/lib64/libreoffice/program/unopkg add --shared /root/sort/exportasimages-0-9-3.oxt

Then I need to input ‘yes’.

Read the complete License Agreement displayed above. Accept the License Agreement by typing "yes" on the console then press the Return key. Type "no" to decline and to abort the extension setup.
[Enter "yes" or "no"]:yes
ERROR: You need write permissions to install a shared extension!

I’m using root, and I’ve tried to give .oxt and unopkg 777 permissions,
still prompting ERROR: You need write permissions to install a shared extension!

see this: