[pacman-dev] [PATCH] doc: add man page for pacman-conf

Jelle van der Waa jelle at vdwaa.nl
Tue Feb 19 20:38:26 UTC 2019


Signed-off-by: Jelle van der Waa <jelle at vdwaa.nl>
---
 doc/Makefile.am            |  3 +-
 doc/pacman-conf.8.asciidoc | 60 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 doc/pacman-conf.8.asciidoc

diff --git a/doc/Makefile.am b/doc/Makefile.am
index de87c409..f68f4ea0 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -16,7 +16,8 @@ MANPAGES = \
 	makepkg.conf.5 \
 	pacman.conf.5 \
 	libalpm.3 \
-	BUILDINFO.5
+	BUILDINFO.5 \
+	pacman-conf.8
 
 DOXYGEN_MANS = $(wildcard man3/*.3)
 
diff --git a/doc/pacman-conf.8.asciidoc b/doc/pacman-conf.8.asciidoc
new file mode 100644
index 00000000..0e4c96be
--- /dev/null
+++ b/doc/pacman-conf.8.asciidoc
@@ -0,0 +1,60 @@
+pacman-conf(8)
+==============
+
+Name
+----
+pacman-conf - query pacman's configuration file
+
+
+Synopsis
+--------
+'pacman-conf' [options] [<directive> ...]
+
+
+Description
+-----------
+The 'pacman-conf' utility is created since parsing pacman's configuration file
+is non-trivial and extremely difficult to do correctly from scripts. It makes it
+easy for scripts to get the same configuration value which pacman itself would
+use.
+
+
+Options
+-------
+*-c, \--config* <path>::
+	Specify an alternate configuration file.
+
+*-R, \--rootdir* <path>::
+	Specify an alternate installation root (default is `/`).
+
+*-r, \--repo* <remote>::
+	Query options for a specific repository.
+
+*-v, \--verbose*::
+	Always shown directive names.
+
+*-l, \--repo-list*::
+	List configured repositories.
+
+*-V, \--version*::
+	Display version and exit.
+
+*-h, \--help*::
+	Output syntax and command line options.
+
+
+Examples
+--------
+
+pacman-conf -r core Usage::
+	Show the value of the Usage configuration option for core repository.
+
+pacman-conf HoldPkg::
+	Show the value of the HoldPkg configuration option.
+
+
+See Also
+--------
+linkman:pacman.conf[5]
+
+include::footer.asciidoc[]
-- 
2.20.1


More information about the pacman-dev mailing list