Skip to content

Conversation

@dlglin
Copy link
Member

@dlglin dlglin commented Jan 19, 2026

Update the the check_modules.pl script to add the name of the Debian and RedHat package for perl packages where available.
This adds another flag when calling the script, where the user can specify if they are on a deb- or rpm-based system, and the output will suggest a command for installing any missing packages.

Copy link
Member

@drgrice1 drgrice1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good idea. However, I think that it may be necessary to have separate packagetype options for Debian and Ubuntu. Usually packages are the same for the two, but not always. Could that be an issue for Red Hat and Oracle?

my %modulesList = (
'Archive::Tar' => {
'package' => {
'deb' => 'perl-modules',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to

Suggested change
'deb' => 'perl-modules',
'deb' => 'perl',

There is no perl-modules package (at least for Ubuntu). There is a perl-modules-5.38 package on Ubuntu 24 which contains all of the packages you listed for the perl-modules pakcage. However it would probably be a bad idea to list that here. That would be specific to the version of Ubuntu. The perl package would be on all versions of Ubuntu, and it depends on the perl-modules-5.38 package (that would be a different Perl version for other Ubuntu versions though), and so it will be installed if the perl package is.

},
'Data::Dumper' => {
'package' => {
'deb' => 'libperl',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to

Suggested change
'deb' => 'libperl',
'deb' => 'perl',

There is also no libperl package, but there is libperl5.38t64. The perl package also depends on that.

@pstaabp
Copy link
Member

pstaabp commented Jan 26, 2026

How hard would it be to detect the platform of the system? Seems like there is info in /etc/os-release and on ubuntu there is a ID_LIKE line that says it is debian.

Perhaps if the -k flag is used then this overrides the detecting.

@dlglin
Copy link
Member Author

dlglin commented Jan 26, 2026

I think this is a good idea. However, I think that it may be necessary to have separate packagetype options for Debian and Ubuntu. Usually packages are the same for the two, but not always. Could that be an issue for Red Hat and Oracle?

I changed from package manager to distribution so that this is currently specific to Ubuntu and RHEL. I checked Oracle, and it uses the same perl package names as RHEL, but it could be different for other distros.

using the apt package manager
'rhel' - for RedHat Enterprise Linux and equivalents with the
EPEL and CodeReady Builder repositories enabled
(e.g. Rocky Linux, Oracle Linux)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed this. Fix the indentation here. There are tabs characters that are messing with things.

@somiaj
Copy link
Contributor

somiaj commented Feb 1, 2026

Would it be possible to add debian as an alias of ubuntu that could be overridden in the few places the package names differ. That way I wouldn't need to add a debian => 'package' option to each dependency?

@dlglin
Copy link
Member Author

dlglin commented Feb 2, 2026

Would it be possible to add debian as an alias of ubuntu that could be overridden in the few places the package names differ. That way I wouldn't need to add a debian => 'package' option to each dependency?

I don't like this. It would be based on the assumption that if there isn't a Debian package specified, then the name would match the ubuntu package, but it's possible that there isn't a Debian package at all.

@somiaj
Copy link
Contributor

somiaj commented Feb 2, 2026

In practice I highly doubt that will happen, ubuntu gets its packages from debian (really the alias should go the other way). Would having the option debian => '' be enough in the case there isn't a debian package to be able to state it. Because if we make debian an option we are basically going to copy almost every ubuntu line (right now I copy/paste the exact line of packages from the ubuntu install guide and they work in debian without any problems). There are some differences at the core perl level, but not at the library level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants