While it is possible to install packages against our remote repository, it
is also possible to mirror our package repository and install against
the local mirror using pkg-inst. This will
significantly decrease the time required to download the package from
the repository to the installation host. Mirroring can be done using
our pkg-mirror tool, part of our package utilities
suite, or with the wget tool.
To mirror using the pkg-mirror tool to the
"/tmp/mirror " directory, invoke pkg-mirror
as follows:
# /opt/TWWfsw/bin/pkg-mirror
--local-depot=/tmp/mirror \
--depot='https://updates.thewrittenword.com'
\
--login='login'
--password='password' --dist-ver=latest \
[package ...]
When no package names are specified, all packages in the
repository will be mirrored. To mirror a specific package and all of
its dependencies, specify the package name (e.g. package above)
on the command-line.
If you are behind a firewall (aka proxy server), the following
arguments might be needed to set the host and port, login id, and
password on the proxy server:
--proxy-host='host:port'
--proxy-login='login'
--proxy-password='password'
Unlike wget, only one system type can be
mirrored at a time with pkg-mirror . To mirror a system
type different from the platform pkg-mirror is run on,
specify --systype=system type where "system
type" can be found below described in the "systype "
variable for wget.
To mirror using the wget tool, the following
variables can be used as part of the GET request encoded in the URL
(examples below):
Variable |
Description |
dist |
Name of distribution to update. Multiple distributions can
be specified by using "dist " multiple times. This option
is only applicable for customers receiving more than one distribution
type. If not specified, all distributions you are subscribed to are
used to select packages. |
dist-ver |
Distribution version. The special value
"latest " specifies the latest distribution version. If no
distribution version is specified, all versions for which you are
subscribed are used. |
update-type |
Update type (possible choices are "errata " for
errata to packages shipped with a release, "packages " for
packages shipped with a release, "security " for security
fixes, "support " for the pbutils,
pkgutils, and sbutils software,
"test " for packages in testing that are not of
"production" quality, and "updates " for new and updated
packages since the last release). Multiple update types can be
specified by using "update-type " multiple times. The
default update types are "errata ",
"packages ", "security ",
"support ", and "updates ". |
systype |
System type. Possible choices:
AIX 5.3 |
powerpc-ibm-aix5.3.0.0 |
AIX 6.1 |
powerpc-ibm-aix6.1.0.0 |
AIX 7.1 |
powerpc-ibm-aix7.1.0.0 |
HP-UX 11.23/PA |
hppa2.0-hp-hpux11.23 |
HP-UX 11.23/IA |
ia64-hp-hpux11.23 |
HP-UX 11.31/PA |
hppa2.0-hp-hpux11.31 |
HP-UX 11.31/IA |
ia64-hp-hpux11.31 |
RHEL 5/x86 |
i686-redhat-linuxe5 |
RHEL 5/x86_64 |
x86_64-redhat-linuxe5 |
RHEL 6/x86 |
i686-redhat-linuxe6 |
RHEL 6/x86_64 |
x86_64-redhat-linuxe6 |
RHEL 7/x86_64 |
x86_64-redhat-linuxe7 |
RHEL 8/x86_64 |
x86_64-redhat-linuxe8 |
Solaris 10/SPARC |
sparc-sun-solaris2.10 |
Solaris 10/Intel |
i386-pc-solaris2.10 |
Solaris 11/SPARC |
sparc-sun-solaris2.11 |
Solaris 11/Intel |
i386-pc-solaris2.11 |
Multiple system types can be specified by using
"systype " multiple times. If no systype type is
specified, the default is to use all system types for which you are
subscribed to. |
In the examples below, "/tmp/mirror " is the path
we use to mirror the repository to and "login" and
"password" are the login and password given to you with your
initial order.
A sample command-line invocation to retrieve all updates for
all system types you are subscribed to for the latest distribution
would be:
$ wget -r -N -nH -l inf -P
/tmp/mirror -np --http-user=login \
--http-passwd=password
'https://updates.thewrittenword.com/?dist-ver=latest'
For a specific update type and system type:
$ wget -r -N -nH -l inf -P
/tmp/mirror -np --http-user=login \
--http-passwd=password
'https://updates.thewrittenword.com/?\
dist-ver=latest&update-type=errata&systype=sparc-sun-solaris2.10'
For multiple update types and system types:
$ wget -r -N -nH -l inf -P
/tmp/mirror -np --http-user=login \
--http-passwd=password
'https://updates.thewrittenword.com/?\
dist-ver=latest&update-type=errata&update-type=security&\
systype=hppa2.0-hp-hpux11.23&systype=sparc-sun-solaris2.10'
Once wget completes the downloads, a directory
structure similar to the following will be created:
/tmp/mirror/cd/dists/9.2/errata/hppa2.0-hp-hpux11.23/...
/tmp/mirror/cd/dists/9.2/errata/sparc-sun-solaris2.10/...
/tmp/mirror/cd/dists/9.2/errata/...
/tmp/mirror/cd/dists/9.2/packages/hppa2.0-hp-hpux11.23/...
/tmp/mirror/cd/dists/9.2/packages/sparc-sun-solaris2.10/...
/tmp/mirror/cd/dists/9.2/packages/...
/tmp/mirror/cd/dists/9.2/updates/hppa2.0-hp-hpux11.23/...
/tmp/mirror/cd/dists/9.2/updates/sparc-sun-solaris2.10/...
/tmp/mirror/cd/dists/9.2/updates/...
/tmp/mirror/cd/dists/9.2/security/hppa2.0-hp-hpux11.23/...
/tmp/mirror/cd/dists/9.2/security/sparc-sun-solaris2.10/...
/tmp/mirror/cd/dists/9.2/security/...
|