How to update an existing Sage package (spkg)

To extract the package type: -

This will extract the folder structure to "<SAGE_ROOT>\spkg\build\mypackage.1.0.0". Make any changes you need. If you would like to test your changes you should copy this folder to something like "<SAGE_ROOT>\spkg\build\mypackage.1.0.0-test". Then you can build it using: -

Once you are happy with your changes you can create a new spkg file (will overwrite existing one) using the following command: -