Yes it will, but only if the package is part of any lists that where downloaded while doing a apt-get update
, eg:
- You get a package that comes from a PPA that you want to use and you add the package manually to
/var/cache/apt/archives
, because the version of the package is not present on any package list from your sources it will not be used.
Packages are also signed, so if the signature from the package does not match the expected signature then it will be downloaded again, package identification does not depend on the name of the file only.
Making it short: if the manually added package version and signature match anything in your sources package list then that package will be used, else it will be downloaded again.
/var/apt/cache
.