Novell is now a part of Micro Focus

Basics: How to download files on a Linux machine

Novell Cool Solutions: Tip
By Stomfi

Digg This - Slashdot This

Posted: 1 Apr 2005

Question: I don't know if you've received this question before, but here goes. How do you download on a Linux machine? You gave a link in a previous question to download the Berkeley Vi Editor. I went to the site and clicked on download. A window appeared and asked: "What should Firefox do with this file?" Open with gunzip(default) was already chosen, so I tried that. A blank screen appeared with "Transferring data from" in the lower left part of the screen. I got out of there after a half hour of nothing happening and tried the other option, "save to disk". The same thing happened with that.

In MS Windows, when I choose Open, the download automatically installs. When I choose "save to disk" it asks where I want to save it. How do I find out where Linux saves downloads, how do I get there and once I get there, how do I install it? I know this is more than one question, but I'm still pretty new at Linux. Thank you.

Answer: For SUSE

Vi is included in every Linux distribution, so that you should never have to download it. Since there are hundreds of free programs already on your system, it is best to check if a program is on your system before you try to download it. You can do this by opening a console terminal and typing:

$ whereis vi

The whereis command will tell you if it is one of the PATH folders. The PATH is where Linux looks for common commands and programs. This doesn't always work because some programs, especially suites, are put into the /opt folder, where optional programs go. So another command used to find programs and files is called locate. Give the command:

$ locate vi

This will find every file with the letters vi in it. If it is exactly the same name as the one you are looking for or if it the same with a ".sh" extension, it will probably be the one. You can test these by making it execute from its folder. For example:

$ /opt/mozilla/bin/

The site you visited was an FTP site and even in Windows, you would use an FTP clients to do a download. You should go to an HTTP HTML download site if you are using a browser.

Here is a copy of the download page. You can see that some of them start with ftp and others with http. If you use a browser to download (Slower but easier) go to the http sites.

-- VIM Distribution Sites --

Vim can be found at:                     Holland, Amsterdam                         Holland, Amsterdam

Server status and planned downtime:

Mirrors (working):                          Holland, Amsterdam                       USA, California                      USA, Hoboken, NJ  USA, Michigan?                      USA, Chicago
x              USA, New York                     USA, Fremont                       Canada, Burlington                       Holland, Amsterdam                               Germany, Berlin                      Germany, Oldenburg                       England, London                      England, Kent                       Ireland, Dublin                       France, Gif sur Yvette              France, Paris                       Italy, Pistoia                       Austria, Vienna                       Denmark, Copenhagen               Sweden, Borlange                       Spain                       Iceland                       Israel, Haifa
+                       Poland, Warsaw                       Romania, Iasi                        Slovakia                       Singapore                       Taiwan, Kaohsiung                      Taiwan, Taichung                       Japan, Tokyo                       Korea, Seoul

HTTP mirror of ftp site:         Columbus, Ohio, USA                      Taiwan, Kaohsiung                             Taiwan, Taichung
=                      Austria, Vienna                      Spain                      Israel, Haifa                      Moscow, Russian Fed.                     Slovakia, Bratislava                     England, Kent

SUSE KDE has a nice ftp client if you want to try it out.

In Linux, because of built-in security, new programs are saved to disk, and then installed by the super user/ root user. Your Linux firewall will probably complain if you try to do a direct install over the net, or it may not even allow you to, depending on how securely you've got it set.

Make sure that you never go onto the Internet as the root user. (It is best never to login as the root user).

Always, as a newbie, download new programs in your package manager format and for your particular distribution.

i.e. for SUSE 9.2 in rpm format. e.g. progname-2.2.1.rpm

The site probably doesn't have rpms for your distro as it is the programming site. Either get them from your distro supplier's site or go to and look for your programs there.

Create a sub folder in your home folder for saving them. Mine is called "/home/stomfi/webstuff" You can tell all your downloads to go there by opening "Edit -- Preferences" in the FireFox menu bar.

This is the preferences window:

You can see that I've chosen the folder I created to save my downloads in.

I downloaded the ftp by clicking on it in the browser window and it downloaded right into my folder. Like you, I'm using Firefox version 1.0 as supplied by SUSE 9.2.

One thing that may make a difference is that I allow ftp files to come through my firewall.

To install the downloaded rpm file, open the file manager, double click on the file.

Here it is with the vim file:

Clicking the file brings up this window:

Click the Install button. This will open the super user password window:

The super user's password opens the rpm installer which will go through the install sequence and then close. Here is the install, part way through the process:

This is the same method as that is used for installing from a CD-ROM or other removable media on SUSE.

This Newbie answer has covered:

How to check whether a program is on your system.
How to find packages suitable for your distribution.
How to set up a download folder.
How to download a package using FireFox 1.0.
How to install the package.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates