I wonder why nobody did implement that feature before. I imagine
(without knowing much about APT's internals), the pseudocode would look
like that:
- install command gets the list
- if the package does not exist in the cache and the given string is a
file, then:
- read the metadata of this package
- creating a virtual sources set containing that package and inject
it somewhere in APTs graph representation. The access method
would be "file:", and it should get the highest possible priority
(at least higher than any seen priority)
- install the prerequisites and then the package with the usual
methods
fi