Check this post. This article explains how to install packages in GNU-Octave. It has all the necessary commands as well.

https://www.scivision.co/gnu-octave-install-packages/