The staging directory is where cPanel stores update data before the system applies it. This setting determines where the system places the staging files. By default cPanel uses the main cPanel directory for this purpose:
[18:37:17 host root@93934852 ~]cPs# cat /etc/cpupdate.conf
However, this setting can be modified. If this directory doesn’t have enough disk space, the system selects a different directory for the next attempt. Furthermore, it's possible to manually change the directory to something else by following the below steps:
First, you need to access the update preference interface in WHM which can be accessed here:
WHM >> Server Configuration >> Update Preferences
To select the staging directory, perform either of the following actions:
Enter a new directory in the Directory text box. If it doesn’t exist, the system creates the
HOSTNAMEis server’s hostname.
Select a partition in the Available Partitions table. The path to the selected partition will appear in the Directory text box.
Then you need to run the updates again.
Alternatively, this whole process can be from the command line. To see how to modify cPanel's update preferences from the command line you can refer to this link: