Error in add extensions to command line

i try add extension to command line to libreoffice

unopkg add --shared path-extesion.oxt

for all users by root
but only install in ubuntu, error in cenos , fedora.

that oky is ubuntu
but in fedora , cenos must:
1- user root
2-cd /usr/lib64/libreoffice/share
3- mkdir uno_packages
4-unopkg add --share path-extension.oxt