File: //scripts/installrpm2
#!/usr/local/cpanel/3rdparty/bin/perl
# cpanel - scripts/installrpm2 Copyright 2020 cPanel, L.L.C.
# All rights reserved.
# copyright@cpanel.net http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited
# Installs a package requested on command line
$| = 1;
system '/usr/local/cpanel/scripts/checkyum', '--kernel';
die 'checkyum --kernel exited nonzero' if $?;
system 'yum', '-y', 'install', @ARGV;
system '/usr/local/cpanel/scripts/checkyum', '--nokernel';
die 'checkyum --nokernel exited nonzero' if $?;
exit;