How to export packages from one project to another?

I’m having a problem using the package manager with unity 6. I have a working project with several packages installed and I need to migrate to another project. I’ve exported all the project files as a package but the packages they depend on are not exported. I’ve tried to go back and export them but there doesn’t seem to be an option.

How do I export all packages from one project to another besides doing it manually?
Any advice would be appreciated.

You can’t.

If you create a .unitypackage this will only contain assets under the Assets tree. If they depend on Package Manager packages, you need to manually install them in the target project.

You can shortcut the manual installation by copying the Packages/manifest.json from one project to another so that the other project will install the same packages.