Getting RPMs Using wget



Getting RPMs Using wget

The wget command can be used to download files quickly when you already know the URL at which the RPM is located. This is especially convenient if you are logged into your Linux box from another machine running a Web browser. You can browse the download site for the RPM you need, right-click on the desired link, and select copy shortcut (Windows) or Copy Link Location (Linux). After you have done this, you can then select your SSH/telnet/Linux Terminal login window and type the command wget URL. Here is an example downloading a DHCP update from Fedora:

     [root@bigboy tmp]# wget
     http://linux.stanford.edu/pub/mirrors/fedora/linux/core/2/i386/os/
     Fedora/RPMS/dhcp-3.0pl2-6.16.i386.rpm
     --17:38:36--
     ftp://linux.stanford.edu/pub/mirrors/fedora/linux/core/2/i386/os/
     Fedora/RPMS/dhcp-3.0pl2-6.16.i386.rpm
                => `dhcp-3.0pl2-6.16.i386.rpm.5'
     Resolving linux.stanford.edu... done.
     Connecting to linux.stanford.edu[171.66.2.18]:21... connected.
     Logging in as anonymous ... Logged in!
     ==> SYST ... done.    ==> PWD ... done.
     ==> TYPE I ... done.  ==> CWD
     /pub/mirrors/fedora/linux/core/2/i386/os/Fedora/RPMS ... done.
     ==> PASV ... done. ==> RETR dhcp-3.0pl2-6.16.i386.rpm ... done.
     Length: 529,890 (unauthoritative)

     100%[===============================>] 529,890   889.12K/s    ETA
     00:00

     17:38:36 (889.12 KB/s) - `dhcp-3.0pl2-6.16.i386.rpm.5' saved [529890]

     [root@bigboy tmp]#