How to Install and Uninstall perl-lib-relative Package on openSuSE Tumbleweed
Last updated: November 26,2024
1. Install "perl-lib-relative" package
In this section, we are going to explain the necessary steps to install perl-lib-relative on openSuSE Tumbleweed
$
sudo zypper refresh
Copied
$
sudo zypper install
perl-lib-relative
Copied
2. Uninstall "perl-lib-relative" package
Please follow the instructions below to uninstall perl-lib-relative on openSuSE Tumbleweed:
$
sudo zypper remove
perl-lib-relative
Copied
3. Information about the perl-lib-relative package on openSuSE Tumbleweed
Information for package perl-lib-relative:
------------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : perl-lib-relative
Version : 1.2.0-2.1
Arch : noarch
Vendor : openSUSE
Installed Size : 21.8 KiB
Installed : No
Status : not installed
Source package : perl-lib-relative-1.2.0-2.1.src
Upstream URL : https://metacpan.org/release/lib-relative
Summary : Add paths relative to the current file to @INC
Description :
Adding a path to @INC to load modules from a local directory may seem
simple, but has a few common pitfalls to be aware of. Directly adding a
relative path to '@INC' means that any later code that changes the current
working directory will change where modules are loaded from. This applies
to the '.' path that used to be in '@INC' by default until perl 5.26.0, or
a relative path added in code like 'use lib 'path/to/lib'', and may be a
vulnerability if such a location is not supposed to be writable.
Additionally, the commonly used FindBin module relies on interpreter state
and the path to the original script invoked by the perl interpreter,
sometimes requiring workarounds in uncommon cases like generated or
embedded code. This module proposes a more straightforward method: take a
path relative to the current file, absolutize it, and add it to '@INC'.
If this module is already available to be loaded, it can be used as with
lib.pm, passing relative paths, which will be absolutized relative to the
current file then passed on to lib. Multiple arguments will be separately
absolutized, and absolute paths will be passed on unchanged.
For cases where this module cannot be loaded beforehand, the last section
of the "SYNOPSIS" can be copy-pasted into a file to perform the same task.
------------------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : perl-lib-relative
Version : 1.2.0-2.1
Arch : noarch
Vendor : openSUSE
Installed Size : 21.8 KiB
Installed : No
Status : not installed
Source package : perl-lib-relative-1.2.0-2.1.src
Upstream URL : https://metacpan.org/release/lib-relative
Summary : Add paths relative to the current file to @INC
Description :
Adding a path to @INC to load modules from a local directory may seem
simple, but has a few common pitfalls to be aware of. Directly adding a
relative path to '@INC' means that any later code that changes the current
working directory will change where modules are loaded from. This applies
to the '.' path that used to be in '@INC' by default until perl 5.26.0, or
a relative path added in code like 'use lib 'path/to/lib'', and may be a
vulnerability if such a location is not supposed to be writable.
Additionally, the commonly used FindBin module relies on interpreter state
and the path to the original script invoked by the perl interpreter,
sometimes requiring workarounds in uncommon cases like generated or
embedded code. This module proposes a more straightforward method: take a
path relative to the current file, absolutize it, and add it to '@INC'.
If this module is already available to be loaded, it can be used as with
lib.pm, passing relative paths, which will be absolutized relative to the
current file then passed on to lib. Multiple arguments will be separately
absolutized, and absolute paths will be passed on unchanged.
For cases where this module cannot be loaded beforehand, the last section
of the "SYNOPSIS" can be copy-pasted into a file to perform the same task.