what exactly is “a long time”? A minute, half an hour etc.? It heavily depends on the hardware (or VM) it is installed on. An installation on a single core 2.0 GHz Processor etc. will take a lot longer than on cutting-edge enterprise hardware.
Furthermore since you are installing elastic and not OpenSearch it might also help asking on the elastic forums (https://discuss.elastic.co/).