What is the role of the /var/lib/dpkg/available file in Ubuntu and Debian machines?
2 Answers
Beyond the obvious (a list of currently-available package versions, used by the Debian installers such as dselect, dpkg and apt), not much. It's a flat-file database (or cache of one).
Further reading:
-
aptdoesn't use/var/lib/dpkg/available, it uses its own caches.Stephen Kitt– Stephen Kitt2016-06-02 09:40:20 +00:00Commented Jun 2, 2016 at 9:40
/var/lib/dpkg/available is the list of available packages in dpkg-based systems (such as Debian and Ubuntu).
For more info:
man dpkg
statusandavailableare different files with (presumably) different purposes.statustracks the status of installed (or partially installed, or to-be-installed) packages. However, allman dpkgsays aboutavailableis the following: "dpkg keeps its record of available packages in /var/lib/dpkg/available." However, the man page never explains what it meas for a package to be "available". So the question is very much unanswered, imo.