LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-27-2011, 01:16 PM   #1
digilinux
LQ Newbie
 
Registered: Dec 2010
Posts: 17

Rep: Reputation: 0
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
 
Old 10-27-2011, 03:49 PM   #2
SecretCode
Member
 
Registered: Apr 2011
Location: UK
Distribution: Kubuntu 11.10
Posts: 562

Rep: Reputation: 102Reputation: 102
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!
 
Old 10-27-2011, 04:03 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by SecretCode View Post
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get install synaptic / aptitude install synaptic not working :S LittlePenguin Linux - Newbie 5 01-19-2011 07:25 AM
Config Generation humbletech99 Linux - General 0 02-24-2009 10:03 AM
Script for switch config generation mou5e Programming 3 05-10-2008 12:38 AM
screenshot generation peedaro Linux - General 8 10-28-2007 07:16 AM
Synaptic Gui ver on Suse 10.0 - error message : "command synaptic not found" suse2166 Linux - Newbie 6 04-04-2006 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration