Packaging is the mechanism that creates module (libraries) from code in order to be able to distributed.
(library|package) are generally packaged into an archive of code (such as JAR, ZIP, … files).
Container technology such as docker gives also a mean to package an application.
See Code Shipping - (Package|Library|Dependency) Manager