When running a ‘yum update’ under CentOS, there are certain packages you may be running which you wish to remain static, or which can potentially cause errors with the update eg. Samba.
In these situations it is useful to force yum to exclude certain packages from being updated under CentOS.
Yum uses a configuration file located at <
If you wish to exclude packages you need to define a list for exclusion from updates or installs. This should be a space separated list. (Shell globs using wildcards * and ?) are allowed).
Continue reading Excluding Packages from Yum Update
If rpm / yum command hangs during operations or you see error messages – it means your rpm database corrupted. /var/lib/rpm/ stores rpm database just delete the same and rebuild rpm database:
Command to rebuild rpm database
rm -f /var/lib/rpm/__db*
rpm --rebuilddb -v -v
Forcing the restore of a transfered cPanel account , even if the new system says the username is all ready in use
/scripts/restorepkg –force –skipres <account.tar.gz>
When installing the CSF firewall on your CentOS server, you need to make sure that you have libwww-perl installed
This is easily done by installed it with yum on CentOS 5
yum install perl-libwww-perl