Web Hosting Talk







View Full Version : wget...sigh


rootabeer
08-05-2004, 01:09 AM
Hello all...I am really enjoying learning how to manage my server via root...but I've noticed that most tutorials I've used arn't very newbie friendly...I have a quick question...

I am trying to install ImageMagick...and I've figured out how to create a directory for it...which I made at /home/imagemagick/

And, I've figured out how to use wget to get the files I need on my server...but...how do I get the files I've downloaded into the directory I've just created? Do I download directly to the directory? Or, do I download first, then move it...and if that's the case, where is the default download directory?

Thanks all.

deadserious
08-05-2004, 01:45 AM
Usually you would download the files directly to where you want them, but either way works. You can mv files with the mv command. The majority of the time this will most likely just be a temporary directory that you use for downloading/installing any ways.

For something like ImageMagick you would most likely be downloading a compressed file which contains all the files necessary to install it. And once you've downloaded it, you would then unzip / untar it which would create a directory inside your current working directory. Then you'd need to cd into that directory and then run the configure / install scripts.

sonixi
08-12-2004, 11:16 PM
if you are in the target directory, say /usr/local/imagemag for simplicity.

wget http://www.whatever.com/file.tar

Then, tar -xf file.tar to unpack it.

If you are in a different directory when you download,

wget http://www.whatever.com/file.tar

then, move the file...

mv file.tar /usr/local/imagemag

or, copy it

cp -r -f myfile.tar /usr/local/imagemag

sehe
08-13-2004, 09:09 AM
or you can use the -P option
wget http://www.whatever.com/file.tar -P /usr/local/imagemag
which will make it save the file.tar in the /usr/local/imagemag dir

overulehost
08-13-2004, 09:31 AM
is there a way to unzip zip files on linux?

sehe
08-13-2004, 09:56 AM
Originally posted by overulehost
is there a way to unzip zip files on linux?
use unzip
there is a good chance its preinstalled on your system, if its not
try the rpm (http://www.rpmfind.net/linux/rpm2html/search.php?query=unzip) or http://www.info-zip.org/pub/infozip/UnZip.html#Linux and install it