Offline installation of X-Pack

I have downloaded x-pack-5.0.0.zipand extracted it in a folder like /setup/x-pack-5.0.0.zip. Here https://www.elastic.co/guide/en/x-pack/5.0/installing-xpack.html#xpack-installing-offline I have seen the command;

bin/elasticsearch-plugin install x-pack

But how can I specify the folder here? I have tried;

./elasticsearch-plugin install /setup/x-pack-5.0.0/elasticsearch

but it says;

A tool for managing installed elasticsearch plugins

Commands
--------
list - Lists installed elasticsearch plugins
install - Install a plugin
remove - Removes a plugin from elasticsearch

Non-option arguments:
command

Option         Description
------         -----------
-h, --help     show help
-s, --silent   show minimal output
-v, --verbose  show verbose output
ERROR: Unknown plugin /setup/x-pack-5.0.0/elasticsearch

How can I fix this?

There is nothing in the instructions around unzipping the file, you need to point the plugin command at the zip file instead.

It's showing error;

ERROR: Unknown plugin /setup/x-pack-5.0.0.zip

Is that the full path to the file?

yes it is

Per the docs, the command is bin/elasticsearch-plugin install file:///path/to/file/x-pack-5.0.0.zip So you need to do bin/elasticsearch-plugin install file:///setup/x-pack-5.0.0.zip.

You have not added the file:// part.

2 Likes

That solved the problem. Thanks :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.