1Carton::Doc::Update(3)User Contributed Perl DocumentationCarton::Doc::Update(3)
2
3
4
6 Carton::Doc::Update - Update the dependencies
7
9 carton update [module]
10
12 Update the dependencies version for your application.
13
14 Carton is designed to update your dependency in a conservative way,
15 meaning that it doesn't update modules that aren't explicitly required
16 to.
17
18 "carton update" is a command to explicitly update one or all of modules
19 in your cpanfile to the latest available that satisfies the
20 requirements in cpanfile.
21
23 Suppose you have a cpanfile with:
24
25 requires 'DBI', '1.600';
26 requires 'Plack', '== 1.0011';
27
28 and then run "carton install" to get DBI 1.610 (the latest at that
29 time) and Plack 1.0011 (as specified in the requirement).
30
31 A few weeks later, DBI and Plack have been updated a couple of times.
32 Running "carton install" won't update the versions, because the
33 installed versions satisfy the requirements in "cpanfile".
34
35 Running "carton update" will update DBI to the latest version, say
36 1.611, because the version still satisfies the requirement. However, it
37 won't update Plack's version, since whatever latest version on CPAN
38 will not satisfy the Plack's requirement "== 1.0011" because it wants
39 an exact version.
40
41
42
43perl v5.32.0 2020-07-28 Carton::Doc::Update(3)