Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the RPM Package from the Mirror Site

The following describes how to install PostgreSQL 11.3 using the RPM package of the mirror site. Adjust the installation operations based on the server environment and network conditions.

  • The RPM package available on the Kunpeng mirror site is packaged based on PostgreSQL 11.3 Porting Guide and does not contain vulnerabilities or bug fixes.
  • If you want to use this method, the server must be able to access the Internet. If the server is not connected to the Internet, download the RPM package from the mirror site and upload it to the server. Run the rpm -ivh postgresql-11.3-1.el7.aarch64.rpm command for installation. Compliance with the open source license agreements is required when using the open source software. When using open source software, comply with the applicable license agreements.

    PostgreSQL 11.3 RPM package: https://mirrors.huaweicloud.com/kunpeng/yum/el/7/aarch64/Packages/database/postgresql-11.3-1.el7.aarch64.rpm

To install PostgreSQL using the RPM package available at the mirror site, perform the following steps:

  1. Clear the cache.
    1
    yum clean all
    
  2. Cache the software package information in the Yum repository to the local drive.
    1
    yum makecache
    
  3. Install the RPM package.
    1
    yum -y install postgresql-11.3-1.el7.aarch64 --enablerepo=kunpeng
    

  4. Check the installed RPM package.
    1
    rpm -qa | grep postgresql
    

  5. Optional: Perform this step to avoid the failure to initialize or start the database.
    1. Download the rpm-bug.zip package and upload it to the /home directory on the server.

      https://mirrors.huaweicloud.com/kunpeng/archive/kunpeng_solution/database/patch/rpm-bug.zip

    2. Decompress rpm-bug.zip.
      1
      2
      cd /home/
      unzip rpm-bug.zip
      
    3. Go to the directory where the package is decompressed and save the files in the directory to the corresponding library file directory. When a message is displayed asking whether to rewrite the file, enter y and press Enter.
      1
      2
      3
      4
      5
      6
      cd rpm-bug
      cp libatomic.so.1 /usr/lib64/
      cp libstdc++.so.6.0.24 /lib64/
      rm /lib64/libstdc++.so.6
      ln -s /lib64/libstdc++.so.6.0.24 /lib64/libstdc++.so.6
      cp libaio.so.1.0.1 /usr/lib64/libaio.so.1