makepkg: move option parsing code to separate file
[pacman-ng.git] / doc / repo-add.8.txt
blob01968827dbeecacb5da5e917a615ad523efc374d
1 /////
2 vim:set ts=4 sw=4 syntax=asciidoc noet:
3 /////
4 repo-add(8)
5 ==========
7 Name
8 ----
9 repo-add - package database maintenance utility
11 Synopsis
12 --------
13 'repo-add' [options] <path-to-db> <package|delta> [<package|delta> ...]
15 'repo-remove' [options] <path-to-db> <packagename|delta> [<packagename|delta> ...]
18 Description
19 -----------
20 'repo-add' and 'repo-remove' are two scripts to help build a package database for
21 packages built with linkman:makepkg[8] and installed with linkman:pacman[8].
22 They also handle package deltas produced by linkman:pkgdelta[8].
24 'repo-add' will update a package database by reading a built package or package
25 delta file. Multiple packages and/or deltas to add can be specified on the
26 command line.
28 'repo-remove' will update a package database by removing the package name or
29 delta specified on the command line. Multiple packages and/or delta to remove
30 can be specified on the command line.
33 Common Options
34 --------------
35 *-q, \--quiet*::
36         Force this program to keep quiet and run silent except for warning and
37         error messages.
39 *-s, \--sign*::
40         Generate a PGP signature file using GnuPG. This will execute `gpg
41         --detach-sign --use-agent` on the generated database to generate a detached
42         signature file, using the GPG agent if it is available. The signature file
43         will be the entire filename of the database with a ``.sig'' extension.
45 *-k, \--key* <key>::
46         Specify a key to use when signing packages. Can also be specified using
47         the GPGKEY environmental variable. If not specified in either location, the
48         default key from the keyring will be used.
50 *-v, \--verify*::
51         Verify the PGP signature of the database before updating the database.
52         If the signature is invalid, an error is produced and the update does not
53         proceed.
55 repo-add Options
56 ----------------
57 *-d, \--delta*::
58         Automatically generate and add a delta file between the old entry and the
59         new one, if the old package file is found next to the new one.
61 *-f, \--files*::
62         Tells repo-add also to create and include a list of the files in the
63         specified packages. This is useful for creating databases listing all files
64         in a given sync repository for tools that may use this information.
66 See Also
67 --------
68 linkman:makepkg[8], linkman:pacman[8], linkman:pkgdelta[8]
70 include::footer.txt[]