Blame doc/download.rst

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 download Plugin
Packit Service 27f74b
=====================
Packit Service 27f74b
Packit Service 27f74b
Download binary or source packages.
Packit Service 27f74b
Packit Service 27f74b
--------
Packit Service 27f74b
Synopsis
Packit Service 27f74b
--------
Packit Service 27f74b
Packit Service 27f74b
``dnf download [options] <pkg-spec>...``
Packit Service 27f74b
Packit Service 27f74b
---------
Packit Service 27f74b
Arguments
Packit Service 27f74b
---------
Packit Service 27f74b
Packit Service 27f74b
``<pkg-spec>``
Packit Service 27f74b
    Package specification for the package to download.
Packit Service 27f74b
    Local RPMs can be specified as well. This is useful with the ``--source``
Packit Service 27f74b
    option or if you want to download the same RPM 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, see `Options` in :manpage:`dnf(8)` for details.
Packit Service 27f74b
Packit Service 27f74b
``--help-cmd``
Packit Service 27f74b
    Show this help.
Packit Service 27f74b
Packit Service 27f74b
``--arch <arch>[,<arch>...]``
Packit Service 27f74b
    Limit the query to packages of given architectures (default is all compatible architectures with
Packit Service 27f74b
    your system). To download packages with arch incompatible with your system use
Packit Service 27f74b
    ``--forcearch=<arch>`` option to change basearch.
Packit Service 27f74b
Packit Service 27f74b
``--source``
Packit Service 27f74b
    Download the source rpm. Enables source repositories of all enabled binary repositories.
Packit Service 27f74b
Packit Service 27f74b
``--debuginfo``
Packit Service 27f74b
    Download the debuginfo rpm. Enables debuginfo repositories of all enabled binary repositories.
Packit Service 27f74b
Packit Service 27f74b
``--downloaddir``
Packit Service 27f74b
    Download directory, default is the current directory (the directory must exist).
Packit Service 27f74b
Packit Service 27f74b
``--url``
Packit Service 27f74b
    Instead of downloading, print list of urls where the rpms can be downloaded.
Packit Service 27f74b
Packit Service 27f74b
``--urlprotocol``
Packit Service 27f74b
    Limit the protocol of the urls output by the --url option. Options are http, https, rsync, ftp.
Packit Service 27f74b
Packit Service 27f74b
``--resolve``
Packit Service 27f74b
    Resolves dependencies of specified packages and downloads missing dependencies in the system.
Packit Service 27f74b
Packit Service 27f74b
--------
Packit Service 27f74b
Examples
Packit Service 27f74b
--------
Packit Service 27f74b
``dnf download dnf``
Packit Service 27f74b
    Download the latest dnf package to the current directory.
Packit Service 27f74b
Packit Service 27f74b
``dnf download --url dnf``
Packit Service 27f74b
    Just print the remote location url where the dnf rpm can be downloaded from.
Packit Service 27f74b
Packit Service 27f74b
``dnf download --url --urlprotocols=https --urlprotocols=rsync dnf``
Packit Service 27f74b
    Same as above, but limit urls to https or rsync urls.
Packit Service 27f74b
Packit Service 27f74b
``dnf download dnf --destdir /tmp/dnl``
Packit Service 27f74b
    Download the latest dnf package to the /tmp/dnl directory (the directory must exist).
Packit Service 27f74b
Packit Service 27f74b
``dnf download dnf --source``
Packit Service 27f74b
    Download the latest dnf source package to the current directory.
Packit Service 27f74b
Packit Service 27f74b
``dnf download rpm --debuginfo``
Packit Service 27f74b
    Download the latest rpm-debuginfo package to the current directory.
Packit Service 27f74b
Packit Service 27f74b
``dnf download btanks --resolve``
Packit Service 27f74b
    Download the latest btanks package and the uninstalled dependencies to the current directory.