Get the package name from `egg=<package-name>`. Refs #6643.