summaryrefslogtreecommitdiffstats
path: root/cli.txt
blob: 4736f5aa15ae6e1b0493882c82e40eae53dd35b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Usage: ./opkg-opk [-c CONTROL-DIR] [-f CONTROL-FILE] [-l] PACKAGE
   or: ./opkg-opk -b -c CONTROL-DIR -d DATA-DIR PACKAGE

--- OR ---

Read mode:
Usage: ./opkg-opk [-c CONTROL-DIR] [-f CONTROL-FILE] [-F DATA-FILE] [-l] [-L] \
       PACKAGE
Options:
  -c, --control-dir=CONTROL-DIR    Extract control files into CONTROL-DIR.
  -f, --control-file=CONTROL-FILE  Print the contents of the named control file.
                                   If this option is given multiple times, the
                                   named control files will be printed in the
                                   order they appear in the package.
  -F, --data-file=DATA-FILE        Print the contents of the named data file.
                                   If this option is given multiple times, the
                                   named data files will be printed in the order
                                   they appear in the package.
  -l, --list-control               List the control files.
  -L, --list-data                  List the data files.  The list is currently
                                   produced in a format similar to that
                                   generated by GNU and BusyBox tar's verbose
                                   listing.  User and group IDs and names are
                                   not checked against those on the host system,
                                   since they may differ.

Build mode:
Usage: ./opkg-opk -b -c CONTROL-DIR -d DATA-DIR [-s SPECIAL-FILE] \
       [-o OVERRIDE-FILE] [-u USER] [-g GROUP] [-r] PACKAGE
Options:
  -b, --build                      Create a package from the specified
                                   CONTROL-DIR and DATA-DIR.
  -c, --control-dir=CONTROL-DIR    Read control files from CONTROL-DIR.
  -d, --data-dir=DATA-DIR          Read data files from DATA-DIR.
  -s, --special=SPECIAL-FILE       Read device special files list from
                                   SPECIAL-FILE.
  -o, --ownership=OVERRIDE-FILE    Read user/group overrides from OVERRIDE-FILE.
  -u, --user=USER                  Set owner to USER instead of UID 0 for files
                                   without user/group overrides.
  -g, --group=USER                 Set group to GROUP instead of GID 0 for files
                                   without user/group overrides.
  -r, --real-owner                 Use the real ownership of files without user/
                                   group overrides.

Other options:
  -h, --help                       Show this help information and exit.
  -V, --version                    Show version information and exit.

-f and -l are mutually exclusive
-F and -L are mutually exclusive
-f, -F, -l, and -L are invalid with -b
-d, -s, -o, -u, -g, and -r are only valid with -b
-u and -g are invalid with -r