WGET - Download via Cookie
WGET
When trying to download software from Oracle/Red Hat etc... you will find you cannot download direct to the server. This is because you only get the download link when you login to the webpage and therefore the authenticated cookie is on your desktop. When you then copy the download link and paste in a terminal on the server it fails as it does not have the download cookie on the server.
This is how you get the download working without having to install a browser on the server.
If you are using Firefox, download the following addon
If you are using Google Chrome, download the following extension
Once you have the addon/extension installed, you just need to go to the website, login, and then export the cookie using the addon/extension. Once you have this file on the server name it
Then all you need to do is run the following command
replacing the URL with the download link from the webpage, for example - to download Oracle 11g
This will now start the download directly on the server
Labels:
Add Comment