1App::Pinto::Command::roUostesr(3C)ontributed Perl DocumeAnptpa:t:iPoinnto::Command::roots(3)
2
3
4
6 App::Pinto::Command::roots - show the roots of a stack
7
9 version 0.14
10
12 pinto --root=REPOSITORY_ROOT roots [OPTIONS]
13
15 !! THIS COMMAND IS EXPERIMENTAL !!
16
17 This command lists the distributions that are the roots of the
18 dependency tree that includes all the distributions in the stack. In
19 other words, it tells you which distributions or packages you would
20 need to install from this stack to get all the other distribution in
21 the stack.
22
24 As an alternative to the "--stack" option, you can also specify the
25 stack as an argument. So the following examples are equivalent:
26
27 pinto --root REPOSITORY_ROOT list --stack dev
28 pinto --root REPOSITORY_ROOT list dev
29
30 A stack specified as an argument in this fashion will override any
31 stack specified with the "--stack" option. If a stack is not specified
32 by neither argument nor option, then it defaults to the stack that is
33 currently marked as the default stack.
34
36 --format FORMAT_SPECIFICATION
37 Format of the output of each record using "printf"-style
38 placeholders. Valid placeholders are:
39
40 Placeholder Meaning
41 -----------------------------------------------------------------------------
42 %p Package name
43 %P Package name-version
44 %v Package version
45 %y Pin status: (!) = is pinned
46 %a Distribution author
47 %f Distribution archive filename
48 %m Distribution maturity: (d) = developer, (r) = release
49 %M Distribution main module
50 %h Distribution index path [1]
51 %H Distribution physical path [2]
52 %s Distribution origin: (l) = local, (f) = foreign
53 %S Distribution source
54 %d Distribution name
55 %D Distribution name-version
56 %V Distribution version
57 %u Distribution URI
58 %% A literal '%'
59
60
61 [1]: The index path is always a Unix-style path fragment, as it
62 appears in the 02packages.details.txt index file.
63
64 [2]: The physical path is always in the native style for this OS,
65 and is relative to the root directory of the repository.
66
67 You can also specify the minimum field widths and left or right
68 justification, using the usual notation. The default format is
69 "%a/%f".
70
71 --stack NAME
72 -s NAME
73 List the roots of the stack with the given NAME. Defaults to the
74 name of whichever stack is currently marked as the default stack.
75 Use the stacks command to see the stacks in the repository.
76
78 Install all modules in the stack in one shot:
79
80 pinto -r /myrepo roots | cpanm --mirror-only --mirror file:///myrepo
81
82 Generate a basic cpanfile that would install all modules in the stack:
83
84 pinto -r /myrepo roots --format 'requires q{%M};' > cpanfile
85
87 This list of roots produced by this command is not always correct.
88 Many Perl distributions use dynamic configuration so you can't truly
89 know what distributions need to be installed until you actually try and
90 install them. Pinto relies entirely on the static META files to
91 determine prerequisites.
92
93 But in most cases, this list is pretty accurate. When it is wrong, it
94 typically includes too many distributions rather than too few. At
95 best, this will have no impact because your installer will have already
96 installed them as prerequisites. At worst, you may be installing a
97 distribution that you don't really need.
98
100 Jeffrey Ryan Thalhammer <jeff@stratopan.com>
101
103 This software is copyright (c) 2015 by Jeffrey Ryan Thalhammer.
104
105 This is free software; you can redistribute it and/or modify it under
106 the same terms as the Perl 5 programming language system itself.
107
108
109
110perl v5.38.0 2023-07-21 App::Pinto::Command::roots(3)