Downloading RPM Packages for LinuxLink Classic Distributions Using the Command Line

Each LinuxLink Classic distribution has several related Repository components, each of which has a part number and a revision number.

Each component update is given a new revision number, which appears in its URL. In the example below, part #8 is for the mipsel binary packages, part #11 is for the mipsel source packages, and part #161 is for the entire Integrator reference distribution installation.

Setting the Secure HTTP Proxy

Depending upon your site, you might need to set the https_proxy environment variable to allow you to access the packages using the HTTPS protocol. To do this:

  1. If you do not know it, ask your system administrator for the IP address and port you need to use.
  2. Use the export command to set the environment variable, as in the following example:
    export https_proxy=https://10.0.0.1:20/

    Naturally, this is only an example; your IP address and port will be different.

Command Line Example

Use the wget utility to retrieve packages from the command line, including timesys_login and timesys_passwd as POST-DATA.

# wget -r -nd --post-data='timesys_login=JUSER&timesys_passwd \
  =SECRET' https://repository.timesys.com/index.pt/part-8/rev \
  ision-2/RPMS/target-uclibc/
#
# wget -r -nd --post-data='timesys_login=JUSER&timesys_passwd \
  =SECRET' https://repository.timesys.com/index.pt/part-11/re \
  vision-2/RPMS/target-uclibc/ 

# wget -c --post-data='timesys_login=JUSER&timesys_passwd=SEC \
  RET' https://repository.timesys.com/index.pt/part-161/revis \
  ion-1/output/timesys-armv4l-arm-integratorcp-basic--std-12-i \
  nstall.tgz

Make sure you include the trailing /. You might want to use other wget options as appropriate.

Note

If you get an error similar to the following one:

ERROR: Certificate verification error

use the --no-check-certificate option as a workaround.


Getting the Latest Release

To get the latest release, you can substitute “revision-x” with “latest”, as in the following example:

# wget -r -nd --post-data='timesys_login=JUSER&timesys_passwd=SECRET' \
  https://repository.timesys.com/index.pt/part-11/latest/RPMS/target-uclibc/