Updating Linux

When you update the Linux operating system on the NAM Probe, you can do it online or offline.

Before you begin

Before installing an update, whether online or offline, make sure all previously released fixes relevant to the system have been applied.

You can check the currently installed kernel release and review Supported OS and SQL versions to find out what releases are supported.

# uname -mrs

Update the Linux kernel as needed.

When you have completed the above, you are ready to update online or offline.

Online Linux updates

To install updates online for Red Hat Enterprise Linux, log into the system as root and use the following commands:

Check whether your Red Hat Enterprise Linux is registered.
To update Red Hat Enterprise Linux using the online service, the Linux deployment must be registered with Red Hat Network.
Execute the following command at the prompt:

# subscription-manager list

If your Status is not Subscribed, register your Red Hat Enterprise Linux on the Red Hat Network:
(Type the entire command in one line)

# subscription-manager register  
--username=<RHN username>  
--password=<RHN password>  
--auto-attach -force  

After you are subscribed, you can issue yum commands:

  • Update the operating system:
    # yum update  
    
  • Option: use parameter -y to automatically begin updating and installing updates.
    # yum update -y  
    
  • Example: to install the vsftpd package:
    # yum install vsftpd  
    
  • Example: to install the bind package:
    # yum update bind  
    

If you have installed updates online, you do not to continue with the rest of this help topic, which applies only to installing updates offline.

Offline Linux updates

To install updates offline for Red Hat Enterprise Linux, log into the system as root and do the following:

  1. Make sure you have the createrepo package installed.

  2. Download the ISO file for the latest release of your RHEL version and copy it to the NAM Probe.

  3. Create directories to mount the RHEL ISO file.

    # mkdir -p /cdrom/iso  
    # mount -o loop <iso-name> /cdrom/iso  
    

    Where the iso-name is the ISO filename.

  4. Create a repository and clean all cached files from any enabled repository.

    # cd /cdrom  
    # createrepo .  
    # yum clean all  
    
  5. Create a file /etc/yum.repos.d/rhel-local.repo

    # cat > /etc/yum.repos.d/rhel-local.repo  
    
  6. Type in the following entry in the rhel-local.repo file and press <CTRL+D> to save and exit.

    [rhel-repository]  
    name=local repository  
    baseurl=file:///cdrom  
    enabled=1  
    
  7. Update the operating system:

    # yum update -y  
    

    Option: use parameter -y to automatically begin updating and installing updates.