Content
Package metadata location
Package metadata belongs to /var/lib/pkg
. For each package installed a folder is create after its name.
ls -1d /var/lib/pkg/* | head -15
/var/lib/pkg/Cython/
/var/lib/pkg/GitPython/
/var/lib/pkg/Mako/
/var/lib/pkg/ModemManager/
/var/lib/pkg/NetworkManager/
/var/lib/pkg/NetworkManager-openconnect/
/var/lib/pkg/NetworkManager-openvpn/
/var/lib/pkg/PyQt5/
/var/lib/pkg/PyQt5_sip/
/var/lib/pkg/PyQtWebEngine/
/var/lib/pkg/PyYAML/
/var/lib/pkg/Remmina/
/var/lib/pkg/a52dec/
/var/lib/pkg/aalib/
/var/lib/pkg/account-plugins/
Each package contains a file with a file list of the package, a dependency file that lists the package dependencies, origin repository, info file, etc.
ls -1d /var/lib/pkg/python3/*
/var/lib/pkg/python3/python3-3.9.7.build
/var/lib/pkg/python3/python3-3.9.7.dependency
/var/lib/pkg/python3/python3-3.9.7.tag
/var/lib/pkg/python3/python3-3.9.7.tree
/var/lib/pkg/python3/python3.info
/var/lib/pkg/python3/python3.url
All of these files are necessary to be in place to make pkgmanager be able to recognize the package, it's relations to other packages and files in the system.
Repository cache location
Repository caches are located in /var/cache/pkgmanager/
Each folder in /var/cache/pkgmanager
represents a remote repository.
Cache structure:
ls /var/cache/pkgmanager/ftp.tankos.org/
PKGLIST PKGNAMES pkgs/ priority
PKGLIST
- is a list of all packages a remote repository provide
PKGNAMES
- a short list of all package names a repository provide
priority
- the priority of the repository
pkgs/
- folder which contains packages downloaded from the repository