View Full Version : [ubuntu] How to save a software package in Ubuntu

December 9th, 2009, 08:38 AM
In ubuntu to install a software package through terminal we use following command:

sudo apt-get install <package_name>

but I want to save the package, so that I can reinstall it later.

please help me...

December 9th, 2009, 08:39 AM
From the apt-get man page:

-d, --download-only
Download only; package files are only retrieved, not unpacked or
installed. Configuration Item: APT::Get::Download-Only.

December 9th, 2009, 08:40 AM
The packages are downloaded into /var/cache/apt/archives. Just copy the package you want to save from there to a storage place.

December 9th, 2009, 08:57 AM
Observe what apt-get is downloading, then go to /var/cache/apt/archives
find those files and copy them somewhere. If you later wish to install them again, you could.
1)Use Add downloaded packages in File menu in synaptic.
2)Install them one by one.
3)Copy them again into /var/cache/apt/archives and then run apt-get. It will not download at that time.

November 18th, 2011, 01:33 PM
You could also use apt ton cd which will create a backup of all debs then you can use it like a repository or even install a custom Ubuntu from it.
Wrong thread sry

November 18th, 2011, 08:20 PM
Closed, necromancy.