How to install Mongo DB to specific directory with user privileges in Red Hat using yumdownloader?

46 views Asked by At

I am trying to install Mongo DB using yumdownloader on a RED HAT server with user privileges only on a RED HAT server. I have gone through this link: https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-red-hat/ but it assumes I have root privileges. Also, I want to install in a specific directory. I am not able to get a correct command to do the same.

1

There are 1 answers

2
Wernfried Domscheit On

You can download the binaries from https://www.mongodb.com/try/download/community as zip-file (tgz package). Then you can extract and run it in a directory of your choice.