PDA

View Full Version : Download items onto server


OOagent137
2003-07-29, 09:49 AM
I know this is a stupid question, but from the command line, how can I download files from the net to my linux server?

Also, I know Mandrake has something like urpmi to install dependencies, what does RedHat have?

Thanks for the help, I know these are newb questions.

Tino Didriksen
2003-07-29, 09:54 AM
Download tool: wget

Update tool: /usr/sbin/up2date (service for http://rhn.redhat.com/)

Alternatively, you can use Webmin's package installer from your browser (if you have Webmin...dunno if the other panels have such a thing).

Dman
2003-07-29, 09:57 AM
There are actually a couple of options.

You can use lynx which is a text based web browser.

lynx http://www.serverbeach.com

Just navigate to what you want to download and hit D

or if you have a url use wget

wget http://www.serverbeach.com/catalog/default.php

OOagent137
2003-07-29, 10:04 AM
Thanks for the help guys.....that's about the fastest I've ever seen anything responded to in a forum!

datavortex
2003-07-29, 23:25 PM
For downloading/installing packages, I always, always use apt on Red Hat:

http://apt.freshrpms.net/

Forget up2date and the redhat registration.

OOagent137
2003-07-30, 23:09 PM
Another stupid question, but I'm running Mandrake here at my house so that's what I'm familiar with (I'm still new, so not THAT familiar). I know in Mandrake I can type this command:

urpmi lynx

Then, if lynx is included on the install or on my Mandrake CDs, it willl auto install it. By the same token, can you do that with RedHat?

Also, if the info isn't available locally, could I type something like this:

urpmi lynx http://linuxsoftware.com

That command would search the site for Lynx, theoretically.

Thanks.

Tino Didriksen
2003-07-30, 23:31 PM
If you are on RHN, /usr/sbin/up2date --nox -i lynx will do the same, provided Lynx is an official Red Hat package.

If you want an unofficial package, get the apt tool datavortex pointed to.

OOagent137
2003-07-31, 00:38 AM
can you explain that command? It looks like you are just typing in a directory followed by switches. Thanks.

datavortex
2003-07-31, 20:32 PM
Actually, in this case, the apt repository will give you the Red Hat distributed package. The same thing will happen with every Red Hat package - all the ones distributed with install or in the updates series (same stuff in up2date) will be in apt, plus the kickass custom packages FreshRPMs adds on.

The command for apt would be (as root):

apt-get install lynx

OOagent137
2003-08-01, 18:25 PM
I'm curious then, is there a better place to point apt to? If so, how do you do it? Thanks.

Striker
2003-08-02, 14:25 PM
You don't point apt anywhere. Apt automatically goes to the database and finds out where to download the package from and install it.

Apt is originally a package manager for debian; this one is just a clone to do RPM's for redhat and such.

OOagent137
2003-08-08, 02:17 AM
But is there a better database I can point it to?

datavortex
2003-08-08, 02:39 AM
I have not found a repository that comes even close to achieving FreshRPM's speed of release, quality control, completeness, and consistency. I use them pretty excluseively now, and I can't reccomend anyone else i would consider better, or even equal.

The file stating the source repositories for apt is: /etc/apt/sources.list