From 1c79ab5ed6af94c2358ad5fb4454fc73a4d0c9f9 Mon Sep 17 00:00:00 2001 From: ImmortalPC Date: Fri, 18 Apr 2014 11:23:23 +0200 Subject: [PATCH] [APT-GET] Donwload deb withtou installing it --- cheatsheets/apt-get | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cheatsheets/apt-get b/cheatsheets/apt-get index 3888613..c18baf8 100644 --- a/cheatsheets/apt-get +++ b/cheatsheets/apt-get @@ -14,3 +14,9 @@ apt-get update && apt-get dist-upgrade # To install a new package(s) apt-get install package(s) + +# Download a package without installing it. (The package will be downloaded in your current working dir) +apt-get download modsecurity-crs + +# Change Cache dir and archive dir (where .deb are stored). +apt-get -o Dir::Cache="/path/to/destination/dir/" -o Dir::Cache::archives="./" install ...