1CPAN-SYSDEPS(1)       User Contributed Perl Documentation      CPAN-SYSDEPS(1)
2
3
4

NAME

6       cpan-sysdeps - report system dependencies for CPAN modules
7

SYNOPSIS

9           cpan-sysdeps --cpanmod Foo::Bar
10           cpan-sysdeps --cpandist Foo-Bar-1.23.tar.gz
11

DESCRIPTION

OPTIONS

14       Option to select a CPAN distribution. At least one of these two is
15       mandatory:
16
17       "--cpandist=Dist-Name"
18       "--cpanmod=Dist::Name"
19
20       Options to simulate another environment:
21
22       "--os=operatingsystem"
23           Change the operating system name. Values are the same as in perl's
24           $^O.
25
26       "--osvers=version"
27           Change the operating system version. On FreeBSD systems this is the
28           output of "uname -r".
29
30       "--linuxdistro=distid"
31           For "--os=linux" only: change the distribution id. This is a
32           lowercase name like "debian" or "fedora".
33
34       "--linuxdistrocodename=codename"
35           For "--os=linux" only: change the distribution version code name.
36           This is a name like "wheezy" or "jessie".
37
38       "--linuxdistroversion=version"
39           For "--os=linux" only: change the distribution version.
40
41       Other options:
42
43       "--uninstalled"
44           Show only the packages which are currently uninstalled. Of course,
45           this makes only sense if the environment is not simulated to
46           something else.
47
48           If there happen to be alternatives in the package specifications
49           and all of these are not installed, then these will be reduced to
50           the first package in the specification.
51
52       "--dryrun"
53           Show the package installation commands which would run.
54
55       "--run"
56           Actually run the package installation commands.
57
58       "--debug"
59           Enable the "debug" option of CPAN::Plugin::Sysdeps.
60

BUGS

62       •   There's no real mapping from CPAN module names to distribution
63           names and vice versa. Currently it's best to stick to just module
64           names, as currently the mapping file only uses module names. A real
65           solution would have to use CPAN.pm or a suitable web service.
66
67       •   Currently both "--linuxdistrocodename" and "--linuxdistroversion"
68           have to be set; there's no automatic conversion between those two.
69           Currently the mapping file uses only codenames, so it may be
70           sufficient to specify only this one.
71
72       •   It's not possible to specify a custom mapping like in
73           CPAN::Plugin::Sysdeps.
74

EXAMPLES

76       "cpan-sysdeps" may be used to utilize CPAN::Plugin::Sysdeps::Mapping
77       outside of CPAN.pm. For example on a Debian-like system:
78
79           apt-get install $(cpan-sysdeps --uninstalled --cpanmod Foo::Bar)
80
81       Or everywhere:
82
83           cpan-sysdeps --cpanmod Foo::Bar --run
84

AUTHOR

86       Slaven Rezic
87

SEE ALSO

89       CPAN::Plugin::Sysdeps.
90
91
92
93perl v5.38.0                      2023-11-06                   CPAN-SYSDEPS(1)
Impressum