extract packages to package.sh