I recommend to use yum instead of apt on CentOS because yum is the native package installer on CentOS. apt is used on Debian/Ubuntu where it is working great, but I'm not sure how good it is on CentOS.