When I need to install software on a linux server, I locate all the software I need and start downloading it.
Thursday, September 22, 2011
Downloading it first to your laptop and moving it then to the server is one option, which works ok if you are on the same network as the server. However with having a lot in the cloud it would be far easier to download the software directly on the server (as the server is already connected to the internet).
The way I download for example Oracle software straight into the server is by using wget.
As you can only download Oracle software after you are logged in, I had to do an additional step to get wget working.
These are the steps I followed:
- Open Firefox and install the Expert Cookies add-on. That tool allows you to download the cookies of your pc into a text file.
- Clear all cookies (Tools - Clear Recent History... - Select Cookies and click the Clear now button)
- In your browser on your pc login to the Oracle website and/or depending the software you need on edelivery.oracle.com. Logging in will set a cookie.
- With the Expert Cookies add-on you can now download the cookies of your pc (Tools - Export Cookies ...) and save the file to your filesystem
- Upload that file to your server
- Now you can run the wget command from the server to download the software you want :-)
For example to download Apache the command looks like:
wget --load-cookies=cookies.txt http://download.oracle.com/otn/linux/ias/101350/ias_linux_x86_ccd_101350_disk1_1of3.zip