Createrepo
Jump to navigation
Jump to search
Prep repo host
yum install createrepo nginx /usr/share/nginx/html/rhel/7Server/os/ createrepo /usr/share/nginx/html/rhel/7Server/os/ /etc/yum.repos.d/my.repo [mytestrepoos] name=MyRepo $releasever - OS # $releasever=7Server baseurl=http://repo.example.com:80/rhel/$releasever/os/ enabled=1 gpgcheck=1 # curl -O http://repo.example.com:80/rhel/7Server/os/RPM-GPG-KEY-redhat-release && rpm --import RPM-GPG-KEY-redhat-release
mount -o loop rhel-server-7.9-x86_64-dvd.iso,ro /mnt/rhel cp -r /mnt/rhel /usr/share/nginx/html/rhel/7/os mount -o loop rhel-8.3-x86_64-dvd.iso /mnt/rhel cp -r /mnt/rhel /usr/share/nginx/html/rhel/8/os # cp -r rhel-7.9 /usr/share/nginx/html/rhel/7/os createrepo /usr/share/nginx/html/rhel/8/os/ /usr/share/nginx/html/rhel/8Server -> /usr/share/nginx/html/rhel/8 createrepo /usr/share/nginx/html/rhel/7/os/ /usr/share/nginx/html/rhel/7Server -> /usr/share/nginx/html/rhel/7 /usr/share/nginx/html/isos/