CentOS to build intranet offline YUM warehouse (installed as a PostgreSQL)

Intranet yum warehouse server configuration

192.168.126.146 Web server host, with Nginx installed

  • Download offline rpm package, see Postgresql10 offline installation method

  • Create repodata< /code>directory

[[emailprotected] html]# createrepo -pdo postgresql/x86_64/ postgresql/x86_64/
  • Store the downloaded rpm package in the repodata working directory

  • Update yum source, every time a new rpm package needs to be updated

[[emailprotected ] html]# createrepo --update /usr/share/nginx/html/postgresql/x86_64/
  • The final server directory is as follows, you may also need to add related dependencies, not here To repeat, the method is similar
[[emailprotected] html]# tree postgresql/postgresql/└── x86_64 ├── pgdg-redhat-repo-42.0-4. noarch.rpm ├── pgdg-redhat-repo-latest.noarch.rpm └── repodata ├── 445ee0d2e31a019d6e1decf9485ef9a611c814c811c986812ccea999c4564872-primary.sqlite.bz2 dfz other xml.bz2acad0d2a22aeda7e1db. ├── 72d106452bea9d803f61c44ec8b0c06cc76e0abf1140b80002745330d4b1048b-other.sqlite.bz2 ├── 86e85d2f38c54099bc474ca2567e49e8e3957659c9c776d6ccebd9cd64d90ae8-filelists.xml.gz ├── 974bc8888a0708d6bbfcd9404b21fffc256b11e77f40e6d2ab547673db05863d-primary.xml.gz ├── f2ad55ae551c06f1705eb388c105420f46306346ca90aee51fdbe79a2a853496-filelists.sqlite.bz2 └── repomd.xml2 directories, 9 files 

Client Configuration

  • 192.168.126.145 Client Host
  • Write the client.repoThe file is as follows
[[email protected] yum.repos.d]# cat test.repo [base]name=basebaseurl=http://192.168. 126.146/baseenable=1gpgcheck=0[upodates]name=updatesbaseurl=http://192.168.126.146/updatesenable=1 gpgcheck=0[test]name=testbaseurl=http://192.168.126.146/testenable=1 gpgcheck=0< /pre> 

  • Rebuild the cache, you can
[[emailprotected] yum.repos.d]# yum clean all && yum makecache

pre>

CentOS 7 yum install Nginx
build private YUM warehouse Library_ and _ intranet mirror station
Centos7 self-built yum source installation rpm
Create offline YUM warehouse in LAN
Build local offline yum warehouse
RPM package production and yum warehouse construction

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 4886 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.