Linux RHEL-6 using media as repo

How to install without an internet connection on a supported Linux system?

One way to install Lumerical’s design software and the Linux OS required libraries is to use the installation media used to install your Linux OS.

Here we tested on CentOS 6.5 and RHEL 6.5 systems (on VMs) that were not connected to the Internet and no updates were done on the system. Installations that has been updated through the regular online updates, might not work as described here.

Pre-requisite

You will need Root or Admin access to install FlexNet license manager and the required libraries.

Configure repository

  • We will configure our repository to get the libraries from the Installation Disk/Media that we used to install our OS.

  • Put the installer disc into your optical drive or insert the Flash drive containing the installation files.

  • With a graphical interface, the device should be mounted and shown on your desktop

  • When using a Flash drive it will show as a mounted USB device.

  • Or mount your ISO file unto your Linux VM (as shown here)

For those without the graphical interface, you can mount the ISO manually.

  • Open Terminal and check on /dev if you have the any of the following files: dvd, dvd1, dvdrw2

  • Add the following line to /etc/fstab

    /dev/dvd       /media       udf,iso9660 noauto,user,ro     0 0
    
  • Run the command to mount and view the files on your ISO:

     mount /media
     cd /media/
     ls -all
    
  • We need to add our own repository file; media.repo using a text editor:

    sudo vi /etc/yum.repos.d/media.repo
    

    with the following entries:

    [media]
    name=Linux Media Repo
    baseurl=file:///media/Server
    gpgcheck=0
    enabled=1
    
  • Disable the other repositories on yum using;

    sudo yum --disablerepo=\* --enablerepo=media --disableplugin='*' info kernel
    
  • Verify that the repository from the device media is enabled by:

    sudo yum repolist
    

    You should get a similar output below:

    media/primary_db                                         | 3.1 MB     00:00 ... 
    repo id                       repo name                                   status
    media                         Linux-6Server - Media                       3,690
    repolist: 3,690
    
  • Install Lumerical’s photonic design software using the guide from our website:
    https://kb.lumerical.com/en/index.html?install_linux_install_manual.html

Optional: only when libxmlsec libraries are missing
  • Download the following libraries from a third party repository, using the link below on a computer with an Internet connection and copy them over to the Linux machine where we are going to install Lumerical’s photonic design software.

    ftp://ftp.pbone.net/mirror/ftp.centos.org/6.8/os/x86_64/Packages/xmlsec1-1.2.20-4.el6.x86_64.rpm
    ftp://ftp.pbone.net/mirror/ftp.centos.org/6.8/os/x86_64/Packages/xmlsec1-openssl-1.2.20-4.el6.x86_64.rpm
    
  • Install the rpm packages:

    sudo rpm -ivh xmlsec1-1.2.20-4.el6.x86_64.rpm
    sudo rpm -ivh xmlsec1-openssl-1.2.20-4.el6.x86_64.rpm
    

Notes:

To obtain the specific xmlsec1 and xmlsec1-openssl RPMs for your version of Linux other than RHEL 6 or CentOS 6, these can be found at:
http://rpm.pbone.net/ or
https://rpmfind.net/linux/rpm2html/search.php

If FlexNet license manager will be installed on the same machine we can use the instructions from our Knowledge Base (KB):
https://kb.lumerical.com/en/index.html?installation_and_setup_install-license-manager.html

2 Likes

For RHEL 7 or CentOS 7 installations, we can modify the media.repo file we created as follows:

[media]
name=Linux-$releasever - Media
baseurl=file:///run/media/<username>/<ISO_name>/
enabled=1
gpgcheck=0

Changing the <ISO_name> to the folder name mounted on the folder, /run/media/<your_username>/