Symptoms
Custom excludes added to /etc/dnf/dnf.conf are removed during upcp on Almalinux and Cloudlinux 8 servers.
Description
When upcp or /usr/local/cpanel/scripts/update-packages is executed, excludes that have been added to /etc/dnf/dnf.conf are removed.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-45707. Follow this article to receive an email notification when a solution is published in the product.
Workaround
A temporary workaround would be to add a script or command to /usr/local/cpanel/scripts/postupcp that would copy the original excludes.
An example:
sed -i 's/^exclude.*/exclude=bind-chroot dovecot\* exim\* filesystem kernel-debug\* kernel-modules\* nsd* p0f php\* proftpd\* pure-ftpd\*/g' /etc/dnf/dnf.conf
Comments
0 comments
Article is closed for comments.