一、下载createrepo

 yum install createrepo -y

二、安装vsftp软件

yum install vsftpd -y

三、将pub制作为yum仓库

 把需要的rpm包拷贝到/var/ftp/pub里,接着制作yum仓库

createrepo .

四、在repo文件里添加ftp源地址

[rpel-puppet]
name=rhel
baseurl=ftp://172.16.1.100/pub
enabled=1
gpgcheck=0

五、启动vsftp服务并测试

1 service vsftpd start
2 chkconfig vsftpd on
3 yum list | grep puppet

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-31
  • 2022-01-02
  • 2021-08-12
  • 2021-12-09
  • 2022-12-23
  • 2022-01-18
相关资源
相似解决方案