Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is there any way to specify the destination directory for each download in apt -get command to save all the downloaded packages in a custom directory instead of archive directory for offline use.

If yes then how to use this custom directory to reinstall application ?

share|improve this question

migrated from Jul 26 '11 at 22:38

This question came from our site for professional and enthusiast programmers.

up vote 2 down vote accepted

From the apt-get manpage:

       Storage area for retrieved package files. Configuration Item:

You can specify it like this:

$ sudo apt-get -o Dir::Cache::Archives=/tmp install wget

Note that this will fail unless that directory has a partial sub-directory

share|improve this answer
+1 Thanks. This works for me. – JOHN Jul 26 '11 at 21:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .