How to download a package with apt without installing it?
How to download a package with apt without installing it?
Run apt with the 'download' subcommand followed by the package to retrieve the package without performing the installation steps.
apt download PACKAGE
Run apt command with the download subcommand to only download the package without actually installing it. This function may be useful when you want to add a package to your own software repository, store a backup of a package, or want to retrieve some information from the package archive file itself.
Example of downloading a package with apt
apt download lynis
Learn more about apt
This article uses the apt command to achieve its tasks. For this popular tool there is a cheat sheet available!
This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.
Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!