Advanced Package Tool
Tricks
Install package from cache
If you accidentally apt remove
d a package, you can re-install the package from your cache with apt install PACKAGENAME
. Sometimes you might have removed a package which is available in a newer version in the repository, but you don't have an internet connection.
You might want to find out which package version you have by searching /var/cache/apt/archives
for your package and see which version it is. You can then install the package with ''apt install PACKAGENAME=VERSION".
(source)