» Content »pkg://CPANPLUS-Dist-Arch-0.07.tar.gz:17209
/ info downloads
This module is a wrapper used by CPANPLUS to install perl modules
using the Archlinux pacman package manager. This makes perl modules
easier to remove, upgrade, etc.
You will need to have pacman installed, of course, to create package
and to install these new packages. Pacman is included with Archlinux
but can even be used on other Linux distributions.
To install this module, run the following commands:
This module is not meant to be used directly. Instead you should use
it through the cpanp shell or the cpan2dist utility that is included
$ cpan2dist --format CPANPLUS::Dist::Arch Acme::Bleach
This lengthly command line can be shortened by specifying
CPANPLUS::Dist::Arch as the default 'Dist' type to use in CPANPLUS's
configuration. A utility script name 'setupdistarch' is included
with this module that can be used to quickly enable or disable
packaging perl modules into pacman packages:
This script will now setup CPANPLUS to automatically package all
modules into pacman packages when installing.
Are you sure you want to do this? [y/N] y
Set CPANPLUS to package all modules through CPANPLUS::Dist::Arch
See setupdistarch for more information about setupdistarch.
If you are having trouble running it, your PATH may not be set
properly, there are instructions in the manual page.
Or you can setup CPANPLUS manually:
... CPANPLUS's startup output here ...
CPAN Terminal> s conf dist_type CPANPLUS::Dist::Arch
Key 'dist_type' was set to 'CPANPLUS::Dist::Arch'
CPAN Terminal> s save
Configuration successfully saved to CPANPLUS::Config::User
CPAN Terminal> q
Exiting CPANPLUS shell
Now you do not have to use the explicit --format flag:
$ cpan2dist Acme::Bleach
After dist_type is set, CPANPLUS will automatically package
anything you install using cpanp. Score! You could then package
and install the Acme::Bleach module like so:
$ cpanp i Acme::Bleach
WHERES IS THE PACKAGE?
Packages are stored under the user's home directory, (the HOME
environment variable) under the .cpanplus directory. Two seperate
directories are created for building packages and for storing the
resulting package file.
Build Directory : ~/.cpanplus/5.10.0/pacman/build
Package Directory : ~/.cpanplus/5.10.0/pacman/pkg
Where 5.10.0 represents the version of perl you used to build the
package and ~/.cpanplus represents the base directory chosen
in your CPANPLUS config.
You can change the destination by setting PKGDEST in your
/etc/makepkg.conf file. The PACKAGER in /etc/makepkg.conf is
inserted into the PKGBUILD comment header. If there is no PACKAGER
set, then 'Anonymous' is used, instead.
SUPPORT AND DOCUMENTATION
After installing, you can find documentation for this module with the
You can also look for information at:
RT, CPAN's request tracker
AnnoCPAN, Annotated CPAN documentation
COPYRIGHT AND LICENCE
Copyright (C) 2009 Justin Davis
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
Results 1 - 1 of 1Search over 15 billion files
© 1997-2017 FileWatcher.com