|
Packit Service |
27f74b |
..
|
|
Packit Service |
27f74b |
Copyright (C) 2014 Red Hat, Inc.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
This copyrighted material is made available to anyone wishing to use,
|
|
Packit Service |
27f74b |
modify, copy, or redistribute it subject to the terms and conditions of
|
|
Packit Service |
27f74b |
the GNU General Public License v.2, or (at your option) any later version.
|
|
Packit Service |
27f74b |
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
Packit Service |
27f74b |
ANY WARRANTY expressed or implied, including the implied warranties of
|
|
Packit Service |
27f74b |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
Packit Service |
27f74b |
Public License for more details. You should have received a copy of the
|
|
Packit Service |
27f74b |
GNU General Public License along with this program; if not, write to the
|
|
Packit Service |
27f74b |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit Service |
27f74b |
02110-1301, USA. Any Red Hat trademarks that are incorporated in the
|
|
Packit Service |
27f74b |
source code or documentation are not subject to the GNU General Public
|
|
Packit Service |
27f74b |
License and may only be used or replicated with the express permission of
|
|
Packit Service |
27f74b |
Red Hat, Inc.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
====================
|
|
Packit Service |
27f74b |
DNF reposync Plugin
|
|
Packit Service |
27f74b |
====================
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
Synchronize packages of a remote DNF repository to a local directory.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
--------
|
|
Packit Service |
27f74b |
Synopsis
|
|
Packit Service |
27f74b |
--------
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``dnf reposync [options]``
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
-----------
|
|
Packit Service |
27f74b |
Description
|
|
Packit Service |
27f74b |
-----------
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
`reposync` makes local copies of remote repositories. Packages that are already present in the local directory are not downloaded again.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
-------
|
|
Packit Service |
27f74b |
Options
|
|
Packit Service |
27f74b |
-------
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
All general DNF options are accepted. Namely, the ``--repoid`` option can be used to specify the repositories to synchronize. See `Options` in :manpage:`dnf(8)` for details.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``-p <download-path>, --download-path=<download-path>``
|
|
Packit Service |
27f74b |
Root path under which the downloaded repositories are stored, relative to the current working directory. Defaults to the current working directory. Every downloaded repository has a subdirectory named after its ID under this path.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``--norepopath``
|
|
Packit Service |
27f74b |
Don't add the reponame to the download path. Can only be used when syncing a single repository (default is to add the reponame).
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``--download-metadata``
|
|
Packit Service |
27f74b |
Download all repository metadata. Downloaded copy is instantly usable as a repository, no need to run createrepo_c on it.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``-a <architecture>, --arch=<architecture>``
|
|
Packit Service |
27f74b |
Download only packages of given architectures (default is all architectures). Can be used multiple times.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``--source``
|
|
Packit Service |
27f74b |
Operate on source packages.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``-m, --downloadcomps``
|
|
Packit Service |
27f74b |
Also download and uncompress comps.xml. Consider using ``--download-metadata`` option which will download all available repository metadata.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``-n, --newest-only``
|
|
Packit Service |
27f74b |
Download only newest packages per-repo.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``--delete``
|
|
Packit Service |
27f74b |
Delete local packages no longer present in repository.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``--metadata-path``
|
|
Packit Service |
27f74b |
Root path under which the downloaded metadata are stored. It defaults to ``--download-path`` value if not given.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``--remote-time``
|
|
Packit Service |
27f74b |
Try to set the timestamps of the downloaded files to those on the remote side.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``-u, --urls``
|
|
Packit Service |
27f74b |
Just print urls of what would be downloaded, don't download.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
--------
|
|
Packit Service |
27f74b |
Examples
|
|
Packit Service |
27f74b |
--------
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``dnf reposync --repoid=the_repo``
|
|
Packit Service |
27f74b |
Synchronize all packages from the repository with id "the_repo". The synchronized copy is saved in "the_repo" subdirectory of the current working directory.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``dnf reposync -p /my/repos/path --repoid=the_repo``
|
|
Packit Service |
27f74b |
Synchronize all packages from the repository with id "the_repo". In this case files are saved in "/my/repos/path/the_repo" directory.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``dnf reposync --repoid=the_repo --download-metadata``
|
|
Packit Service |
27f74b |
Synchronize all packages and metadata from "the_repo" repository.
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
Repository synchronized with ``--download-metadata`` option can be directly used in DNF for example by using ``--repofrompath`` option:
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
``dnf --repofrompath=syncedrepo,the_repo --repoid=syncedrepo list --available``
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
--------
|
|
Packit Service |
27f74b |
See Also
|
|
Packit Service |
27f74b |
--------
|
|
Packit Service |
27f74b |
|
|
Packit Service |
27f74b |
* :manpage:`dnf(8)`, DNF Command Reference
|