Currently it takes about 3.5-5 seconds to run apt-cache search . --full and parse all the packages. To reduce the time it takes, implement a package cache.
- Derive
AptProviderInfo from ProviderInfo
- Create dictionary property to store package cache
- Create timestamp to keep track apt-get package cache
apt-config dump | grep Dir::Cache::srcpkgcache file location
- Discover package names with
apt-cache pkgnames
- If
srcpkgcache updates then rebuild package cache
Currently it takes about 3.5-5 seconds to run
apt-cache search . --fulland parse all the packages. To reduce the time it takes, implement a package cache.AptProviderInfofromProviderInfoapt-config dump | grep Dir::Cache::srcpkgcachefile locationapt-cache pkgnamessrcpkgcacheupdates then rebuild package cache