How to Install and Uninstall perl-Cwd-Guard.noarch Package on AlmaLinux 9
Last updated: November 28,2024
1. Install "perl-Cwd-Guard.noarch" package
Please follow the guidelines below to install perl-Cwd-Guard.noarch on AlmaLinux 9
$
sudo dnf update
Copied
$
sudo dnf install
perl-Cwd-Guard.noarch
Copied
2. Uninstall "perl-Cwd-Guard.noarch" package
This guide let you learn how to uninstall perl-Cwd-Guard.noarch on AlmaLinux 9:
$
sudo dnf remove
perl-Cwd-Guard.noarch
Copied
$
sudo dnf autoremove
Copied
3. Information about the perl-Cwd-Guard.noarch package on AlmaLinux 9
Last metadata expiration check: 0:38:21 ago on Wed Mar 13 07:41:12 2024.
Available Packages
Name : perl-Cwd-Guard
Version : 0.05
Release : 12.el9
Architecture : noarch
Size : 19 k
Source : perl-Cwd-Guard-0.05-12.el9.src.rpm
Repository : epel
Summary : Temporarily change the current directory
URL : https://metacpan.org/release/Cwd-Guard
License : GPL+ or Artistic
Description : Cwd::Guard can change the current directory (chdir) using a limited scope.
:
: use Cwd::Guard qw/cwd_guard/;
: use Cwd;
:
: my $dir = getcwd;
: MYBLOCK: {
: my $guard = cwd_guard('/tmp/xxxxx') or die
: "failed chdir: $Cwd::Guard::Error";
: ... # chdir to /tmp/xxxxx
: }
: ... # back to $dir
Available Packages
Name : perl-Cwd-Guard
Version : 0.05
Release : 12.el9
Architecture : noarch
Size : 19 k
Source : perl-Cwd-Guard-0.05-12.el9.src.rpm
Repository : epel
Summary : Temporarily change the current directory
URL : https://metacpan.org/release/Cwd-Guard
License : GPL+ or Artistic
Description : Cwd::Guard can change the current directory (chdir) using a limited scope.
:
: use Cwd::Guard qw/cwd_guard/;
: use Cwd;
:
: my $dir = getcwd;
: MYBLOCK: {
: my $guard = cwd_guard('/tmp/xxxxx') or die
: "failed chdir: $Cwd::Guard::Error";
: ... # chdir to /tmp/xxxxx
: }
: ... # back to $dir