Skip to content

Commit

Permalink
dnf5: Documentation for "check" command
Browse files Browse the repository at this point in the history
  • Loading branch information
jrohel committed Nov 29, 2023
1 parent 33840a1 commit b9dcefd
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
1 change: 1 addition & 0 deletions dnf5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ It supports RPM packages, modulemd modules, and comps groups & environments.
%{_mandir}/man8/dnf5.8.*
%{_mandir}/man8/dnf5-advisory.8.*
%{_mandir}/man8/dnf5-autoremove.8.*
%{_mandir}/man8/dnf5-check.8.*
%{_mandir}/man8/dnf5-clean.8.*
%{_mandir}/man8/dnf5-distro-sync.8.*
%{_mandir}/man8/dnf5-downgrade.8.*
Expand Down
1 change: 1 addition & 0 deletions doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ if(WITH_MAN)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/dnf5.8 DESTINATION share/man/man8)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/dnf5-advisory.8 DESTINATION share/man/man8)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/dnf5-autoremove.8 DESTINATION share/man/man8)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/dnf5-check.8 DESTINATION share/man/man8)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/dnf5-clean.8 DESTINATION share/man/man8)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/dnf5-distro-sync.8 DESTINATION share/man/man8)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/dnf5-downgrade.8 DESTINATION share/man/man8)
Expand Down
58 changes: 58 additions & 0 deletions doc/commands/check.8.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
..
Copyright Contributors to the libdnf project.
This file is part of libdnf: https://github.com/rpm-software-management/libdnf/

Libdnf is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

Libdnf is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with libdnf. If not, see <https://www.gnu.org/licenses/>.

.. _check_command_ref-label:

####################
Check Command
####################

Synopsis
========

``dnf5 check [options]``


Description
===========

Checks the local packagedb and produces information on any problems it finds.
The set of checks performed can be specified with options.


Options
=======

``--dependencies``
| Show missing dependencies and conflicts.
``--duplicates``
| Show duplicated packages.
``--obsoleted``
| Show obsoleted packages.

Examples
========

``dnf5 check``
| Show all problems.
``dnf5 check --dependencies --obsoleted``
| Show missing dependencies, conflicts and obsoleted packages.
1 change: 1 addition & 0 deletions doc/commands/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ DNF5 Commands

advisory.8
autoremove.8
check.8
clean.8
distro-sync.8
downgrade.8
Expand Down
1 change: 1 addition & 0 deletions doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ man_pages = [
('dnf5.8', 'dnf5', 'DNF5 Package Management Utility', AUTHORS, 8),
('commands/advisory.8', 'dnf5-advisory', 'Advisory Command', AUTHORS, 8),
('commands/autoremove.8', 'dnf5-autoremove', 'Autoremove Command', AUTHORS, 8),
('commands/check.8', 'dnf5-check', 'Check Command', AUTHORS, 8),
('commands/clean.8', 'dnf5-clean', 'Clean Command', AUTHORS, 8),
('commands/distro-sync.8', 'dnf5-distro-sync', 'Distro-Sync Command', AUTHORS, 8),
('commands/downgrade.8', 'dnf5-downgrade', 'Downgrade Command', AUTHORS, 8),
Expand Down

0 comments on commit b9dcefd

Please sign in to comment.