I have an
rpm package I built which depends on
perl. When I try to install this package it fails:
$ rpm -ivh <package-y> error: Failed dependencies: perl is needed by package-y.x86_64
If I run
dnf info perl it shows that perl is not installed but I am able to find
perl on my system:
which perl perl: /usr/bin/perl /opt/lampp/bin/perl /usr/share/man/man1/perl.1.gz
And checking for perl's version:
$ perl --version This is perl 5, version 26, subversion 2 (v5.26.2) built for x86_64-linux-thread-multi (with 47 registered patches, see perl -V for more detail) Copyright 1987-2018, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
It seems that perl is installed by default on my system (fedora) but why does the package manager (dnf or rpm) not recognise it?