How to reset all domains to package defaults using Shell?


Well-Known Member
Jan 16, 2003
How to reset all domains to package defaults using Shell?

Let's say I have 100 packages on 50 servers.

I want to upgrade all domains that use all 100 packages on all 50 servers.

I edited the packages on one server and copied them to /var/cpanel/packages on all servers. So now all servers have my new packages. But the domains that use those packages still do not have the features of the new packages.

Right now in order to get the domains to use the new setting of the new packages, I have to Login to WebHost Manager on each server, click Edit Packages, select the Package, click Edit, click Edit again. 50 X 100 = 5000 times.

It would be nice to run....


Then type in the package name(s)

Hit enter.

Last edited:


Technical Product Specialist
Nov 29, 2006
Houston, TX
cPanel Access Level
Root Administrator
One solution you may want to pursue is to use the XML-API to create a central means by which you can edit packages on all servers. One can easily create a shell script that updates the packages on all servers. Using the XML-API will also act as if you modified the parameters via WHM so, like WHM, any modifications to the package should propagate automatically to all accounts using that package.

XML-API documentation is available at:

editpkg XML-API call information available at: