Air-Gapped Environment Installation "nothing provides package needed by cb-enterprise"
search cancel

Air-Gapped Environment Installation "nothing provides package needed by cb-enterprise"

book

Article ID: 431009

calendar_today

Updated On:

Products

Carbon Black EDR

Issue/Introduction

  • When installing EDR in an air-gapped environment, yum returns an error on one or more packages. 
    nothing provides iotop needed by cb-enterprise-7.9.0.251016.0400-1.el8.x86_64 from CarbonBlack
    nothing provides sysstat needed by cb-enterprise-7.9.0.251016.0400-1.el8.x86_64 from CarbonBlack

Environment

  • Carbon Black EDR: All Versions
  • Air-gapped

Cause

Packages were already installed on the download server causing yum to skip these packages. 

Resolution

  1. On the yum facing server, change into the yum cache directory (where 8 is the OS major version):
    cd /var/cache/yum/x86_64/8/
  2. Setup the CarbonBlack cache with cb-enterprise packages if removed.  Download and Cache RPM files on the Caching Server
  3. Run this command, adding each package that was not found in the yum output:
    yum reinstall <package1> <package2> --downloadonly --downloaddir=/var/cache/yum/x86_64/8/CarbonBlack -y
    - Example: sysstat and iotop
    yum reinstall sysstat iotop --downloadonly --downloaddir=/var/cache/yum/x86_64/8/CarbonBlack -y
  4. Create a new repo package. 
    createrepo CarbonBlack
  5. Create the new repo zip: 
    tar --selinux -cvzf /tmp/edr_yum_cache.tar.gz CarbonBlack/
  6. Bring the updated tar.gz package the air-gapped server, replacing the old cache file. Download the Cache Files to the Air-Gapped Server

Additional Information

  • The yum caching server is recommended to have the same packages installed as the air-gapped server to avoid dependency errors where packages need to be pulled from the OS repositories. 
  • Yum will not attempt to download these already installed dependencies without the forced "reinstall" command. 
  • These steps will include these baseos/appstream packages into the same repository, allowing only a single local repository to be required on the air-gapped server.