Personal tools
     DOCUMENTATION

FAQ:Use the Command Line to Download Images from rBuilder

From rPath Wiki

Jump to: navigation, search
FAQ
Question: How can I download an image from rBuilder using the command line?


Answer: Though rBuilder users can download an image from an rBuilder project using either the builds or releases pages in the web interface, they can also use command line utilities to download the image. This is especially useful for downloading virtual images directly to the server where a hypervisor resides, avoiding the middle step of downloading the image to a local system before uploading it to the server.

1 -- Determine the download URL

Obtain the download URL either from a Releases page (if it is part of a release) or from the build-specific page (as linked from the Builds page). Use the URL associated with the download link. Most web browsers have a way to determine this URL and possibly to copy it to a clipboard (copy-paste buffer). For example, you may have the option to right-click the "Download" link and click Copy Link Address.

In a release, this download URL shows the file name you are downloading, such as:
http://www.rpath.org/rbuilder/downloadImage?fileId=18837

In an unreleased build, this download URL shows a file ID, such as:
http://www.rpath.org/rbuilder/downloadImage?fileId=18837

2 -- Use the download URL to obtain the image

Type or paste the download URL to the command line utility you are using to obtain the image.

One utility for downloading directly from rBuilder is wget. Conary-based systems can install wget from rPath Linux if it is not already installed (conary update wget=conary.rpath.com@rpl:1). The following is an example of using wget for downloading an image from rBuilder Online:

$> wget http://www.rpath.org/rbuilder/downloadImage?fileId=18837