On Thu, Feb 23, 2017 at 7:55 PM, CLOSE Dave
<Dave.Close(a)us.thalesgroup.com> wrote:
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.
the files are stored in current directory under folder named <repoid>.
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
That's what reposync does. You may want to rather try local plugin [1]
for your use case. reposync just downloads packages into folder, not
whole repo structure.
Honza
[1]
http://dnf-plugins-extras.readthedocs.io/en/latest/local.html