
所以我需要创建自定义存储库并通过 Apache 使其在网络中可用。
我所做的步骤。
sudo yum install createrepo
sudo yum install yum-utils
有创建仓库的工具
sudo mkdir –p /var/www/html/repos/
sudo reposync -g -l -d -m --repoid=base --newest-only --download-metadata --download_path=/var/www/html/repos/
sudo reposync -g -l -d -m --repoid=centosplus --newest-only --download-metadata --download_path=/var/www/html/repos/
sudo reposync -g -l -d -m --repoid=extras --newest-only --download-metadata --download_path=/var/www/html/repos/
sudo reposync -g -l -d -m --repoid=updates --newest-only --download-metadata --download_path=/var/www/html/repos/
将 centos 存储库下载到机器上
sudo createrepo /var/www/html
创建仓库
我希望到目前为止我做对了,但不知道如何通过 Apache 使其在网络中可用。
另外,我需要将任何包放入其中并在远程实例上安装此包,并且也不知道如何解决该任务。