yum-utils
yum-utils copied to clipboard
reposync - needs command options for downloading to the directory with hardlinks.
Hello! For command reposync it would be very useful to have an option for downloading to the directory with hardlinks. If file exists unlink him before downloads.
How in works in wget (--unlink) or cp (--remove-destination)
May I ask you why you request the feature? It is important to understand user case behind.
Also I would like to ask you why you ask for the feature on this repository? This utility is in RHEL 7 and it was even removed from Fedora 31 because it is Python 2 based. The active component that provides the functionality is dnf - https://github.com/rpm-software-management/dnf-plugins-core and in near future DNE will be completly replaced by DNF5 - https://github.com/rpm-software-management/dnf5
I using reposync and createrepo, I create a mirror of RHEL repositories on my company's network. To saved the state of the repository at a certain point in time and pass tests for updating servers, you need 3 copies of the repository (new, test, productive). Repositories are copied using the rsync command with the -H option, using hard links so that they do not take up more space. But accordingly, when I update a new repository, all files in the copies of the repositories are also updated, because the file inode is not recreated but changed. All the articles on “creating a local repository” indicate the commands for this package. I didn’t notice that this package is deprecated . Thanks for the answer! I to checked "dnf reposync" is no such function in DNF either.