F
F
fokin_nikolay19892021-06-03 10:30:46
linux
fokin_nikolay1989, 2021-06-03 10:30:46

How to download RHEL 8 x86_64/i386 repository to local repository?

I need to upload a RHEL 8 repository to a local server so that users can access it

yum install httpd -y
sudo sed -i "s/Options Indexes FollowSymLinks/Options Indexes Includes/" /etc/httpd/conf/httpd.conf
systemctl enable httpd --now
yum install createrepo -y
yum install yum-utils -y
mkdir /var/www/html/repo
cd /var/www/html/repo

and this is where I stopped
, I need to reposync, but I don’t understand how to download
sudo dnf reposync --gpgcheck -l --repoid=openstack-16-tools-for-rhel-8-x86_64-debug-rpms--download_path=/home/repository/RHEL8/x86_64 --downloadcomps --download-metadata

this results in an error:dnf reposync: error: unrecognized arguments: -l

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
t_q_l, 2021-06-03
@t_q_l

Check out the official documentation from RedHat: How to create a local mirror of the latest update ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question