How to Install and Uninstall perl-Text-Patch Package on openSUSE Leap
Last updated: December 26,2024
1. Install "perl-Text-Patch" package
Learn how to install perl-Text-Patch on openSUSE Leap
$
sudo zypper refresh
Copied
$
sudo zypper install
perl-Text-Patch
Copied
2. Uninstall "perl-Text-Patch" package
This guide covers the steps necessary to uninstall perl-Text-Patch on openSUSE Leap:
$
sudo zypper remove
perl-Text-Patch
Copied
3. Information about the perl-Text-Patch package on openSUSE Leap
Information for package perl-Text-Patch:
----------------------------------------
Repository : Main Repository
Name : perl-Text-Patch
Version : 1.8-bp155.2.10
Arch : noarch
Vendor : openSUSE
Installed Size : 29.1 KiB
Installed : No
Status : not installed
Source package : perl-Text-Patch-1.8-bp155.2.10.src
Upstream URL : http://search.cpan.org/dist/Text-Patch/
Summary : Patches text with given patch
Description :
Text::Patch combines source text with given diff (difference) data. Diff
data is produced by Text::Diff module or by the standard diff utility (man
diff, see -u option).
* patch( $source, $diff, options... )
First argument is source (original) text. Second is the diff data. Third
argument can be either hash reference with options or all the rest
arguments will be considered patch options:
$output = patch( $source, $diff, STYLE => "Unified", ... );
$output = patch( $source, $diff, { STYLE => "Unified", ... } );
Options are:
STYLE => 'Unified'
STYLE can be "Unified", "Context" or "OldStyle".
The 'Unified' diff format looks like this:
@@ -1,7 +1,6 @@
-The Way that can be told of is not the eternal Way;
-The name that can be named is not the eternal name.
The Nameless is the origin of Heaven and Earth;
-The Named is the mother of all things.
+The named is the mother of all things.
+
Therefore let there always be non-being,
so we may see their subtlety,
And let there always be being,
@@ -9,3 +8,6 @@
The two are the same,
But after they are produced,
they have different names.
+They both may be called deep and profound.
+Deeper and more profound,
+The door of all subtleties!
----------------------------------------
Repository : Main Repository
Name : perl-Text-Patch
Version : 1.8-bp155.2.10
Arch : noarch
Vendor : openSUSE
Installed Size : 29.1 KiB
Installed : No
Status : not installed
Source package : perl-Text-Patch-1.8-bp155.2.10.src
Upstream URL : http://search.cpan.org/dist/Text-Patch/
Summary : Patches text with given patch
Description :
Text::Patch combines source text with given diff (difference) data. Diff
data is produced by Text::Diff module or by the standard diff utility (man
diff, see -u option).
* patch( $source, $diff, options... )
First argument is source (original) text. Second is the diff data. Third
argument can be either hash reference with options or all the rest
arguments will be considered patch options:
$output = patch( $source, $diff, STYLE => "Unified", ... );
$output = patch( $source, $diff, { STYLE => "Unified", ... } );
Options are:
STYLE => 'Unified'
STYLE can be "Unified", "Context" or "OldStyle".
The 'Unified' diff format looks like this:
@@ -1,7 +1,6 @@
-The Way that can be told of is not the eternal Way;
-The name that can be named is not the eternal name.
The Nameless is the origin of Heaven and Earth;
-The Named is the mother of all things.
+The named is the mother of all things.
+
Therefore let there always be non-being,
so we may see their subtlety,
And let there always be being,
@@ -9,3 +8,6 @@
The two are the same,
But after they are produced,
they have different names.
+They both may be called deep and profound.
+Deeper and more profound,
+The door of all subtleties!