Get packages by pid