Skip to content
Advertisement

Download github release with Java/Shell

I want to be able to download a github release (a jar file) and put it in a certain directory on my VPS (running Ubuntu 16.04). How would you go about doing this?

Adding the “shell” tag as I think you’d need to use shell

Advertisement

Answer

See this discussion: Download single files from GitHub

In the past, I’ve used something like:

wget -O filename.jar https://github.com/downloads/user/repository/filename.jar?raw=true

That will place the jar file in your current directory if you run it from your Ubunutu VPS.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement