New mechanism for `loadpkglist` + new function `attpkglist` used by
`savepkglist`.