Switch from link to pkgid