How to install forge with wget

i was sent to use this guide https://setup.md/guides/oracle-cloud by a member of the server but its example is purpur but how would i change that to be using 1.16.5 forge instead
Deploying in Oracle Cloud | setup.md
A modified version of the guide produced by u/Belaboy1095969 on the Admincraft reddit using Ubuntu LTS.
4 Replies
Admincraft Meta
Thanks for asking your question!
Once you have finished, please close your thread. Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
command to close
/close !close !solved
Requested by lantic#0
Discount Milk
Discount Milk2y ago
I wouldn't bother myself. Forge requires you to run their installer What I'd recommend is installing the server on your local machine and then uploading the files to the server using sftp
Lantic
LanticOP2y ago
yeah kinda expected that to be the case just wondered if there was another way
Lildirt
Lildirt2y ago
well, you can DL and run their installer as a jar, if you really want to do it. snipped this from a Dockerfile I wrote a billion years ago, but should give you the gist. They publish jars of their installers so you can automate it if you want.
# vars
ARG FORGE_INSTALL_URL="https://maven.minecraftforge.net/net/minecraftforge/forge/1.16.5-36.2.34/forge-1.16.5-36.2.34-installer.jar"

# download and run the Forge installer
RUN mkdir -p /installer/server
WORKDIR /installer
RUN curl "${FORGE_INSTALL_URL}" > /installer/forge-installer.jar
WORKDIR /installer/server
RUN java -jar /installer/forge-installer.jar --installServer
# vars
ARG FORGE_INSTALL_URL="https://maven.minecraftforge.net/net/minecraftforge/forge/1.16.5-36.2.34/forge-1.16.5-36.2.34-installer.jar"

# download and run the Forge installer
RUN mkdir -p /installer/server
WORKDIR /installer
RUN curl "${FORGE_INSTALL_URL}" > /installer/forge-installer.jar
WORKDIR /installer/server
RUN java -jar /installer/forge-installer.jar --installServer
that's a specific version of their installer (1.16.5 conveniently, which is probably ancient by this point), so you'll have to dig up the link to whatever installer you want, but you can definitely do it.

Did you find this page helpful?