perl-App-local-lib-helper - Make it easy to run code against a local-lib

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-App-local-lib-helper
Package version 0.07
Package release alt1
Package architecture noarch
Package type rpm
Installed size 32.63 KB
Download size 32.63 KB
Official Mirror
This is an object which provide the functionality to create a the local::lib manpage
'helper' script in either the currently loaded the local::lib manpage environment or in
a target directory of choice.  By default the script is called `localenv' and
can be used to invoke a command under the the local::lib manpage which it was built
against.  For example, assume you build a the local::lib manpage like so:
cpanm --local-lib ~/mylib App::local::lib::helper
Note what is happening.  First, you are telling cpanminus to install everything
to a local::lib directory called `~/mylib' (cpanminus behind the scenes uses
the local::lib manpage to do this for you) then you are telling cpanminus to install the
distribution the App::local::lib::helper manpage into that created the local::lib manpage directory.
When the `Makefile.PL' script for the App::local::lib::helper manpage runs, it notices
the fact that it is being asked to install into a locally lib managed directory
and will additionally generate a helper script into `~/mylib/bin' called `localenv'.
Now, if you want to invoke a perl application and use libs installed into
`~/mylib', you can do so like:
~/mylib/bin/localenv perl [SOME COMMAND]
The command `localenv' will make sure the same the local::lib manpage that was active
when the App::local::lib::helper manpage was originally installed is again installed
into the environment before executing the commands passed in `@ARGV'.  Upon
completing the command, the `%ENV' is restored so that you can use this to fire
off an application against a specific the local::lib manpage without needing to deal
with the details of how to activate the the local::lib manpage or how to make sure
your `%ENV' stays clean.
The arguments given to `localenv' don't need to be a perl application.  For
example, I often like to open a sub shell under a particular the local::lib manpage
managed directory.
~/mylib/bin/localenv bash
Now, if I do:
perl -V
I'll see that i`~/mylib' has been added to `@INC'.  Additionally, `~/mylib/bin' will
have been added to `$PATH', so that any command line perl applications installed
into the the local::lib manpage (such as `ack' or `cpanm') can be accessed easily.
Another example usage would be when you want to install an application from
CPAN, install it and all its dependencies to a single directory root and
then run it without a lot of effort.  For example:
cpanm --local-lib ~/gitalyst-libs Gitalist App::local::lib::helper
And presto! Your cpan installed application is running, fully self-contained to
one root directory all under regular user privileges.
the local::lib manpage does all the real work, but I find this to be the easiest way to
run given code against a the local::lib manpage root.


Package Version Architecture Repository
perl-App-local-lib-helper - - -


Name Value
/usr/share/perl5 -
perl(File/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(App/local/lib/ = 0.070
perl-App-local-lib-helper = 0.07-alt1


Type URL
Binary Package perl-App-local-lib-helper-0.07-alt1.noarch.rpm
Source Package perl-App-local-lib-helper-0.07-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-App-local-lib-helper rpm package:
    # sudo apt-get install perl-App-local-lib-helper



See Also

Package Description
perl-App-local-lib-helper-scripts-0.07-alt1.noarch.rpm App-local-lib-helper scripts
perl-App-locket-0.0022-alt1.noarch.rpm Copy secrets from a YAML/JSON cipherstore into the clipboard (pbcopy, xsel, xclip)
perl-App-locket-scripts-0.0022-alt1.noarch.rpm App-locket scripts
perl-App-logcat_format-0.06-alt1.noarch.rpm pretty print adb logcat output
perl-App-logcat_format-scripts-0.06-alt1.noarch.rpm App-logcat_format scripts
perl-App-loggrep-0.002-alt1.noarch.rpm quickly find relevant lines in a log searching by date
perl-App-loggrep-scripts-0.002-alt1.noarch.rpm App-loggrep scripts
perl-App-lookup-0.06-alt1.noarch.rpm search the internet from your terminal
perl-App-lookup-scripts-0.06-alt1.noarch.rpm App-lookup scripts
perl-App-lsiommu-0.002-alt1.noarch.rpm Display IOMMU groups as a tree
perl-App-lsnic-0.005-alt1.noarch.rpm Display table of network controllers
perl-App-lsplusplus-0.52-alt1.noarch.rpm ls on steroids
perl-App-lsplusplus-scripts-0.52-alt1.noarch.rpm perl-App-lsplusplus scripts
perl-App-lzf-0.02-alt1.noarch.rpm Compress/decompress using the LZF algorithm
perl-App-lzf-scripts-0.02-alt1.noarch.rpm App-lzf scripts