Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to download all packages I already installed on Ubuntu 11.10 x64. There should be in /var/cache/apt/archives I know, but there are only 300 Mb of deb files. I installed a lot of development packages that there are not there right now. I think system cleans the cache automatically!

Now I want to download all packages installed on system, else than packages that are installed by default.

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

The following command in the terminal grabs the list of installed packages and downloads, packages will be stored at /var/cache/apt/archives

dpkg -l | grep "^ii"| awk ' {print $2} ' | xargs sudo apt-get -y install --reinstall --download-only
share|improve this answer
    
Can re-installation cause some problem in system? like missing configuration of packages? –  sorush-r Dec 9 '11 at 14:07
1  
Oh! the --download-only flag... Thanks :-) –  sorush-r Dec 9 '11 at 14:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.