« Back to Package manager: Frequently Asked Questions

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!

» Mastering the tool: apt

apt cheat sheet

Other questions related to Package manager

    Related articles

    Like to learn more? Here is a list of articles within the same category or having similar tags.

    Feedback

    Small picture of Michael Boelen

    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!

    Mastodon icon