Linux – RHEL 5.3 Kickstart – How specify location of individual package in Workstation folder

kickstartlinuxrhel5

I keep getting "package does not exist" errors during the install.

I made a kickstart ISO to create an unattended install of a RHEL 5.3 build machine for C++ software releases. It pulls the kickstart config file from our internal web server. This is handy; it makes it easy to test and modify without having to make a new ISO. And I plan to check it in to version control if I can get it working.

Anyway, the rpm packages are located in two folders on the disk; Client and Workstation.
The packages install fine for the ones that are physically located under the Client folder. It cannot find those under the Workstation folder such as as doxygen and subversion complaining that packages do not exist.

Is there a way to specify the individual package location?

# -----------------------------------------------------------------------------
# P A C K A G E S
# -----------------------------------------------------------------------------
%packages
@gnome-desktop
@core
@base
@base-x
@printing
@development-tools
emacs
kexec-tools
fipscheck
xorg-x11-server-Xnest
xorg-x11-server-Xvfb

#Packages Located in Workstation Folder *** Install can not find any of these ??
bison
doxygen
gcc-c++
subversion
zlib-devel
freetype-devel
libxml2-devel

Best Answer

The Kickstart script is already hosted on a web server, so the obvious suggestion is to create an RPM repository on there as well.

Copy your Workstation directory of packages (and repodata subdirectory) to the web server.

In the Kickstart script, point to this path as a new repo.

repo (optional)

Configures additional yum repositories that may be used as sources for package installation. Multiple repo lines may be specified.

repo --name=<repoid> [--baseurl=<url>| --mirrorlist=<url>]
  • --name= — The repo id. This option is required.

  • --baseurl= — The URL for the repository. The variables that may be used in yum repo config files are not supported here. You may use one of either this option or --mirrorlist, not both.

  • --mirrorlist= — The URL pointing at a list of mirrors for the repository. The variables that may be used in yum repo config files are not supported here. You may use one of either this option or --baseurl, not both.

Kickstart Options