Question
How do you exclude packages from yum?
Answer
Note: cPanel excludes some packages by default. You can view details on these excluded packages here:
What packages are excluded by default in cPanel in the yum conf
- Log in to the server via SSH or WHM's Terminal as the
rootuser -
Backup
/etc/yum.conf:# cp -pv /etc/yum.conf{,.backup.$(date +%F_%R)}
- Open
/etc/yum.confwith your preferred text editor - Add the desired package(s) to the
exclude=line at the end of the line of the existing packages, separated by spaces - Save the changes
Comments
0 comments
Article is closed for comments.