This command is used to synchronize a repository with its remote counterpart, ensuring all packages are up to date.
reposync --repoid=epel --download-metadata
Downloads all packages from a Yum/DNF repository locally.
reposync --repoid=base --download_path=/repo/base/