fix identation and simplify some code blocks

This commit is contained in:
Jean-Baptiste Holcroft 2020-04-18 15:42:22 +02:00
commit d0478d012f
4 changed files with 53 additions and 46 deletions

View file

@ -348,12 +348,12 @@ indexterm:[packages,finding Fedora RPM packages]indexterm:[RPM,finding Fedora RP
Although there are many [application]*RPM* repositories on the Internet, for security and compatibility reasons, you should consider installing only official Fedora-provided RPM packages. The following is a list of sources for [application]*RPM* packages:
* indexterm:[{MAJOROS} installation media,installable packages]
indexterm:[packages,{MAJOROS} installation media]
Official {MAJOROS} installation media.
indexterm:[packages,{MAJOROS} installation media]
Official {MAJOROS} installation media.
* indexterm:[initial RPM repositories,installable packages]
indexterm:[packages,initial RPM repositories]
Official [application]*RPM* repositories provided with the [application]*DNF* package manager. See xref:package-management/DNF.adoc#ch-DNF[DNF] for details on how to use the official {MAJOROS} package repositories.
indexterm:[packages,initial RPM repositories]
Official [application]*RPM* repositories provided with the [application]*DNF* package manager. See xref:package-management/DNF.adoc#ch-DNF[DNF] for details on how to use the official {MAJOROS} package repositories.
* Unofficial, third-party repositories not affiliated with {OSORG} also provide RPM packages.
@ -413,44 +413,49 @@ indexterm:[RPM,tips]indexterm:[packages,RPM,tips]
[application]*RPM* is a useful tool for both managing your system and diagnosing and fixing problems. See the following examples for an overview of some of the most-used options.
* To verify your entire system and see what files are missing, issue the following command as `root`:
indexterm:[RPM,finding deleted files with]indexterm:[packages,finding deleted files from]
indexterm:[RPM,finding deleted files with]indexterm:[packages,finding deleted files from]
+
[subs="quotes, macros"]
----
[command]#rpm -Va#
----
+
If some files are missing or appear corrupted, consider reinstalling relevant packages.
* To determine which package owns a file, enter:
indexterm:[RPM,determining file ownership with]indexterm:[packages,determining file ownership with]
indexterm:[RPM,determining file ownership with]indexterm:[packages,determining file ownership with]
+
[subs="quotes, macros"]
----
[command]#rpm -qf _file_pass:attributes[{blank}]#
----
* To verify the package that owns a particular file, enter as `root`:
+
[subs="quotes, macros"]
----
[command]#rpm -Vf _file_pass:attributes[{blank}]#
----
* To locate documentation files that are a part of a package to which a file belongs, enter:
indexterm:[RPM,documentation with]indexterm:[packages,locating documentation for]indexterm:[documentation,finding installed]
indexterm:[RPM,documentation with]indexterm:[packages,locating documentation for]indexterm:[documentation,finding installed]
+
[subs="quotes, macros"]
----
[command]#rpm -qdf _file_pass:attributes[{blank}]#
----
* To find information about a (non-installed) package file, use the following command:
indexterm:[RPM,querying uninstalled packages]indexterm:[packages,querying uninstalled]
indexterm:[RPM,querying uninstalled packages]indexterm:[packages,querying uninstalled]
+
[subs="quotes, macros"]
----
[command]#rpm -qip _package.rpm_pass:attributes[{blank}]#
----
* To list files contained in a package, use:
indexterm:[RPM,querying for file list]indexterm:[packages,obtaining list of files]
indexterm:[RPM,querying for file list]indexterm:[packages,obtaining list of files]
+
[subs="quotes, macros"]
----
[command]#rpm -qlp _package.rpm_pass:attributes[{blank}]#