On 02/14/17 18:31, Rick Stevens wrote:
Try "dnf reposync --repoid google-chrome". The
"--repoid
google-chrome" works with repoquery.
The reference to repoid "google-chrome" apparently refers to the name in
the .repo file (in /etc/yum.repos.d). But it also apparently is used to
determine where the downloaded files are stored. There's nothing in the
.repo file to specify the download location.
When I run this command, I must first make the desired location my
current directory. But the downloaded files aren't stored there; they go
into a new sub-directory called google-chrome under it. I try to use a
directory structure that mirrors the original at Google so this doesn't
work for me:
# cd /var/www/html/pub/google/linux/chrome/rpm/stable/x86_64/
# dnf reposync --repoid google-chrome
The sync works but since the files aren't in the right place, they're
useless. There must be a way to specify the target directory, but since
there's no man page I'm lost. Looking at the Python source, it appears
that -p might work. It claims the default is "./" but specifying "-p
."
or "-p /var/www/html/pub/google/linux/chrome/rpm/stable/x86_64/" doesn't
change the behavior at all.
--
Dave Close