Where can I find the location of downloaded .deb files?

I want to copy this folder before I reinstall Ubuntu so I don't have to redownload the packages.

I am running Ubuntu 12.10 32-bit.

How can I do this?

  • 1
    Why do you want to reinstall? Is something broken? You could install from CD and choose not to install updates during installation (I hope this option is still available), though this would still download some packages like language files. Then copy the contents of /var/cache/apt/archives into the same directory on the new partition and run update. – LiveWireBT Jun 8 '13 at 8:09
  • thanks alot . i need to reinstall because i may remove linux and install it again , so i dont want to download the packeges again and again . – tsepehr Jun 8 '13 at 8:13
up vote 11 down vote accepted

The .deb packages that you have already downloaded in apt-get are stored in /var/cache/apt/archives/.

  • thanks , can i install them later if i have a backup of this folder ? for example , if want to give this folder to a friend who has no internet access to install the backups ? totally i mean HOW TO INSTALL PACKAGES WHITOUT DOWNLOADING THEM , JUST BY HAVING THE .deb FILES ? againg , thanks – tsepehr Jun 8 '13 at 8:09
  • That should be possible. See my comment under the question. – LiveWireBT Jun 8 '13 at 8:09
  • i checked it , that was right . thank you . it can be installed from a cd . do i need to do more or if i just copy .dep files into cd is enough ? – tsepehr Jun 8 '13 at 8:23
  • I don't know if the installer will pick up the newer packages if you put them on the CD and could just guess into which directory to put them on the CD. Manually copying the files back to /var/cache/apt/archives after installation would be easier than reading up on how to produce respins/remasters of installation media. – LiveWireBT Jun 8 '13 at 9:12
  • @sepehr Also take a look at askubuntu.com/questions/974/… or askubuntu.com/search?q=update+offline – LiveWireBT Jun 8 '13 at 9:15

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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