原来redhat 8, perl-interpreter-5.26.3-423.el8_10.x86_64, 这个包下面有很多的文件
bash
rpm -ql perl-interpreter-5.26.3-423.el8_10.x86_64
/usr/share/perl5/Text/Abbrev.pm
/usr/share/perl5/Thread
/usr/share/perl5/Thread.pm
/usr/share/perl5/Thread/Semaphore.pm
/usr/share/perl5/Tie
/usr/share/perl5/Tie/Array.pm
/usr/share/perl5/Tie/File.pm
/usr/share/perl5/Tie/Handle.pm
/usr/share/perl5/Tie/Hash.pm
/usr/share/perl5/Tie/Memoize.pm
/usr/share/perl5/Tie/RefHash.pm
/usr/share/perl5/Tie/Scalar.pm
/usr/share/perl5/Tie/StdHandle.pm
/usr/share/perl5/Tie/SubstrHash.pm
到了redhat9,就不行了,只有下面的几个文件:
bash
(root@us-rhel9):/usr
$ rpm -ql perl-interpreter
/usr/bin/perl
/usr/bin/perl5.32.1
/usr/lib/.build-id
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/c1f1cc4c4c7f2c0fc0173b1dc1aea6d942a28d
/usr/lib/.build-id/ce/c1f1cc4c4c7f2c0fc0173b1dc1aea6d942a28d.1
/usr/share/man/man1/perl.1.gz
/usr/share/man/man1/perlrun.1.gz
/usr/share/perl5/pod
/usr/share/perl5/pod/perl.pod
/usr/share/perl5/pod/perlrun.pod
所以,如果是手动安装的机器,就麻烦了,最好使用dnf来安装需要的软件包。