Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Dependencies

  1. Download an OS image file.
  2. Mount the OS image.

    Mount the OS image using either of the following methods:

    • Method 1: Upload the OS image to the /home directory and mount the image to the /mnt/ directory.
      1
      mount /home/CentOS-7-aarch64-Everything-1810.iso /mnt/
      

      Change the ISO file name based on your OS type. Mounting of the image file is temporary and becomes invalid after the OS is restarted.

    • Method 2: Use the KVM to mount the image to the /mnt/ directory. If the system displays a message indicating that no image is available after you run the command, mount the image again and then run the command.
      1
      mount /dev/sr0 /mnt/
      
  3. Configure the local Yum source.

    Configure the local source if the server cannot obtain dependencies from the Internet using yum commands.

    1. Back up the system Yum source configuration file.
      1
      mv /etc/yum.repos.d /etc/yum.repos.d.bak
      
    2. Create a Yum source configuration directory.
      1
      mkdir /etc/yum.repos.d
      
    3. Go to the Yum source configuration directory.
      1
      cd /etc/yum.repos.d
      
    4. Open the local.repo file.
      1
      vim local.repo
      
    5. Press i to enter the insert mode and add the following content to the local.repo file:
      [local]
      name=local.repo
      baseurl=file:///mnt
      enabled=1
      gpgcheck=0
    6. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Make the local source take effect.
    1
    2
    yum clean all
    yum makecache
    
  5. Install the dependencies. Install the required dependency packages according to the OS type.
    • Install the CentOS dependency packages.
      1
      yum -y install automake libtool* mysql-devel
      
    • Install the openEuler dependency packages.
      1
      yum -y install automake libtool* mariadb-devel