Reading and writing manifests of installed packages