LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   synaptic script generation (https://www.linuxquestions.org/questions/linux-desktop-74/synaptic-script-generation-910512/)

digilinux 10-27-2011 01:16 PM

synaptic script generation
 
Hello everyone,

I'd like to do a complete reinstall of my system. ( ubuntu 10.10 )
It would be very useful to create a script that installs the same software as my current
installation. Synaptic has function to create such. But only for the new software to be installed. ( so i could uninstall the whole synaptic list, remember which, and ask synaptic for install, and create the script from there ). Is there a proper method
to create a shell install script that installs all the apt-get software from my
current installation?

peace,

digi

SecretCode 10-27-2011 03:49 PM

The generally recommended approach to this is: save packages:

Code:

dpkg --get-selections > somefile
On the new installation:
Code:

dpkg --set-selections < somefile

Obviously you have to save somefile somewhere else!

TobiSGD 10-27-2011 04:03 PM

Quote:

Originally Posted by SecretCode (Post 4510116)
The generally recommended approach to this is: save packages:

Code:

dpkg --get-selections > somefile
On the new installation:
Code:

dpkg --set-selections < somefile

Obviously you have to save somefile somewhere else!

This will only set up the package list in the right way. You have to do
Code:

apt-get dselect-upgrade
after this to actually make the installations. You can speed things up if you only use the Ubuntu Core CD for installation. This way you will get only a basic system and your package-list will do the rest.


All times are GMT -5. The time now is 04:36 PM.