How To Install perlbrew on Fedora 34
Introduction
In this tutorial we learn how to install perlbrew
on Fedora 34.
What is perlbrew
perlbrew is a program to automate the building and installation of perl in the users HOME. At the moment, it installs everything to ~/perl5/perlbrew, and requires you to tweak your PATH by including a bashrc/cshrc file it provides. You then can benefit from not having to run ‘sudo’ commands to install cpan modules because those are installed inside your HOME too. It’s almost like an isolated perl environments.
We can use yum
or dnf
to install perlbrew
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install perlbrew.
Install perlbrew on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install perlbrew
using dnf
by running the following command:
sudo dnf -y install perlbrew
Install perlbrew on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install perlbrew
using yum
by running the following command:
sudo yum -y install perlbrew
How To Uninstall perlbrew on Fedora 34
To uninstall only the perlbrew
package we can use the following command:
sudo dnf remove perlbrew
perlbrew Package Contents on Fedora 34
/usr/bin/perlbrew
/usr/share/doc/perlbrew
/usr/share/doc/perlbrew/Changes
/usr/share/doc/perlbrew/README
/usr/share/licenses/perlbrew
/usr/share/licenses/perlbrew/LICENSE
/usr/share/man/man1/perlbrew.1.gz
/usr/share/man/man3/App::Perlbrew::Path.3pm.gz
/usr/share/man/man3/App::Perlbrew::Path::Installation.3pm.gz
/usr/share/man/man3/App::Perlbrew::Path::Installations.3pm.gz
/usr/share/man/man3/App::Perlbrew::Path::Root.3pm.gz
/usr/share/man/man3/App::Perlbrew::Util.3pm.gz
/usr/share/man/man3/App::perlbrew.3pm.gz
/usr/share/perl5/vendor_perl/App
/usr/share/perl5/vendor_perl/App/Perlbrew
/usr/share/perl5/vendor_perl/App/Perlbrew/Path
/usr/share/perl5/vendor_perl/App/Perlbrew/Path.pm
/usr/share/perl5/vendor_perl/App/Perlbrew/Path/Installation.pm
/usr/share/perl5/vendor_perl/App/Perlbrew/Path/Installations.pm
/usr/share/perl5/vendor_perl/App/Perlbrew/Path/Root.pm
/usr/share/perl5/vendor_perl/App/Perlbrew/Util.pm
/usr/share/perl5/vendor_perl/App/perlbrew.pm
References
Summary
In this tutorial we learn how to install perlbrew
on Fedora 34 using yum and dnf.