|
Packit |
3a9065 |
..
|
|
Packit |
3a9065 |
Copyright (C) 2015 Igor Gnatenko
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
This copyrighted material is made available to anyone wishing to use,
|
|
Packit |
3a9065 |
modify, copy, or redistribute it subject to the terms and conditions of
|
|
Packit |
3a9065 |
the GNU General Public License v.2, or (at your option) any later version.
|
|
Packit |
3a9065 |
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
Packit |
3a9065 |
ANY WARRANTY expressed or implied, including the implied warranties of
|
|
Packit |
3a9065 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
Packit |
3a9065 |
Public License for more details. You should have received a copy of the
|
|
Packit |
3a9065 |
GNU General Public License along with this program; if not, write to the
|
|
Packit |
3a9065 |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit |
3a9065 |
02110-1301, USA. Any Red Hat trademarks that are incorporated in the
|
|
Packit |
3a9065 |
source code or documentation are not subject to the GNU General Public
|
|
Packit |
3a9065 |
License and may only be used or replicated with the express permission of
|
|
Packit |
3a9065 |
Red Hat, Inc.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
=====================
|
|
Packit |
3a9065 |
DNF repomanage Plugin
|
|
Packit |
3a9065 |
=====================
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
Manage a repository or a simple directory of rpm packages.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
--------
|
|
Packit |
3a9065 |
Synopsis
|
|
Packit |
3a9065 |
--------
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
``dnf repomanage [<optional-options>] [<options>] <path>``
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
-----------
|
|
Packit |
3a9065 |
Description
|
|
Packit |
3a9065 |
-----------
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
`repomanage` prints newest or oldest packages in a repository specified by <path> for easy piping to xargs or similar programs. In case <path> doesn't contain a valid repository it is searched for rpm packages which are then used instead.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
In order to work correctly with modular packages <path> has to contain repodata with modular metadata. If modular content is present `repomanage` prints packages from newest or oldest versions of each stream in addition to newest or oldest non-modular packages.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
Options
|
|
Packit |
3a9065 |
-------
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
All general DNF options are accepted, see `Options` in :manpage:`dnf(8)` for details.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
The following options set what packages are displayed. These options are mutually exclusive, i.e. only one can be specified. If no option is specified, the newest packages are shown.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
``--old``
|
|
Packit |
3a9065 |
Show older packages.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
``--new``
|
|
Packit |
3a9065 |
Show newest packages.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
The following options control how packages are displayed in the output:
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
``-s``, ``--space``
|
|
Packit |
3a9065 |
Print resulting set separated by space instead of newline.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
``-k <keep-number>``, ``--keep <keep-number>``
|
|
Packit |
3a9065 |
Limit the resulting set to newest ``<keep-number>`` packages.
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
--------
|
|
Packit |
3a9065 |
Examples
|
|
Packit |
3a9065 |
--------
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
Display newest packages in current repository (directory)::
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
dnf repomanage --new .
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
Display 2 newest versions of each package in "home" directory::
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
dnf repomanage --new --keep 2 ~/
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
Display oldest packages separated by space in current repository (directory)::
|
|
Packit |
3a9065 |
|
|
Packit |
3a9065 |
dnf repomanage --old --space .
|