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.

need to know where downloaded packages will be saved after updating ?

i want to copy the folder of packages , and reinstall Linux and install the packages without downloading them again , so i need packages file . Am i allowed to do this and How?

thanks ;

my Ubuntu Linux version : 12.10 32bit

share|improve this question
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 . –  sepehr Jun 8 '13 at 8:13

1 Answer 1

up vote 5 down vote accepted

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

share|improve this answer
    
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 –  sepehr 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 ? –  sepehr 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

 
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.