The Pre-Installed Toolkit Image provides the software components that are required to configure and run a local repository server inside a closed network. Running a local repository server makes it possible for a GlassFish Server installation to obtain packages and updates from within the closed network rather than from the default public GlassFish Server repositories.
The first three steps of this procedure require access to a machine that is connected to the Internet. This machine must also be able to write to some type of removable medium, such as CD, DVD, USB drive, or flash memory card.
The remaining steps in the procedure are performed on the machines that are inside the closed network, and do not require access to an Internet connection.
In a Web browser on the machine that is connected to the Internet, open the Pre-installed Toolkit Images and Starter Repositories page.
Download the ZIP file that contains the Pre-Installed Toolkit Image that is correct for your server's operating system and save it to the location of your choice.
The ZIP files are named according to operating system and architecture, using the following format:
pkg-toolkit-2.3.2-platform-arch.zip |
For example, the ZIP file for 32–bit Linux operating systems is named:
pkg-toolkit-2.3.2-linux-i386.zip |
Download the correct ZIP file for the operating system and architecture on each of the following machines:
The machine on which the local repository server will be run
Each machine on which one or more GlassFish Server installations will be updated inside the closed network
Copy each Pre-Installed Toolkit Image ZIP file to a removable medium that you can physically transport to the machines inside the closed network.
Copy the correct Pre-Installed Toolkit Image ZIP file for each operating system from the removable medium to the directories of your choice on the following machines:
The machine on which the local repository server will be run
Each machine on which one or more GlassFish Server installations will be updated inside the closed network
Unzip the Pre-Installed Toolkit Image ZIP file on each machine to which you copied the ZIP file in the preceding step.
The size of the expanded Pre-Installed Toolkit Image ZIP file depends on the operating system:
On Windows systems, the expanded ZIP file is approximately 11 Mbytes.
On Linux and Solaris systems, the expanded ZIP file is approximately 13 Mbytes.
(Optional) On each machine to which you copied the Pre-Installed Toolkit Image, verify that the pkg command-line tool is correctly installed.
Change to the pkg/bin subdirectory of the directory that contains the unzipped Pre-Installed Toolkit Image.
cd toolkit-dir/pkg/bin |
The directory that contains the unzipped Pre-Installed Toolkit Image.
Display the pkg version.
./pkg version |
Output similar to the following is displayed:
1.122.2-38.2791 |