How to Install and Uninstall perl-Cwd-Guard.noarch Package on Fedora 39

Last updated: January 12,2025

1. Install "perl-Cwd-Guard.noarch" package

This is a short guide on how to install perl-Cwd-Guard.noarch on Fedora 39

$ sudo dnf update $ sudo dnf install perl-Cwd-Guard.noarch

2. Uninstall "perl-Cwd-Guard.noarch" package

In this section, we are going to explain the necessary steps to uninstall perl-Cwd-Guard.noarch on Fedora 39:

$ sudo dnf remove perl-Cwd-Guard.noarch $ sudo dnf autoremove

3. Information about the perl-Cwd-Guard.noarch package on Fedora 39

Last metadata expiration check: 1:28:38 ago on Thu Mar 7 11:44:58 2024.
Available Packages
Name : perl-Cwd-Guard
Version : 0.05
Release : 23.fc39
Architecture : noarch
Size : 18 k
Source : perl-Cwd-Guard-0.05-23.fc39.src.rpm
Repository : fedora
Summary : Temporarily change the current directory
URL : https://metacpan.org/release/Cwd-Guard
License : GPL-1.0-or-later OR Artistic-1.0-Perl
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