LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS
User Name
Password
MEPIS This forum is for the discussion of MEPIS Linux.

Notices


Reply
  Search this Thread
Old 05-23-2007, 11:57 AM   #1
fpd
Member
 
Registered: Aug 2004
Distribution: Mepis
Posts: 70

Rep: Reputation: 15
Saving Synaptic selections for clean install


Is there a method to save my current Synaptic choices (perhaps to a file) so I can have the same packages added/removed on my next Mepis clean installation?

This is not a backup/restore or a re-master question.
 
Old 05-23-2007, 01:47 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
On Debian based machines I do the following.

To save your choices:
Code:
dpkg --get-selections >myselections.txt
To restore:
Code:
dpkg --set-selections <myselections.txt
dselect update
apt-get dselect-upgrade
Note that you can even transfer the file to a different machine to make identical installs. Although it doesn't take care of cloning config files, it will at least give you the same package set.
 
Old 05-24-2007, 09:17 AM   #3
fpd
Member
 
Registered: Aug 2004
Distribution: Mepis
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you for the help pljvaldez.
 
Old 05-24-2007, 12:59 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by pljvaldez
Although it doesn't take care of cloning config files, it will at least give you the same package set.
Nor will it guarantee the same versions of the pkgs.
 
Old 06-01-2007, 12:25 PM   #5
mepnoob2005
Member
 
Registered: Mar 2007
Location: canada
Distribution: SimplyMEPIS 6.5 final
Posts: 104

Rep: Reputation: 15
Smile Saving your downloads for the next install

Quote:
Originally Posted by fpd
Is there a method to save my current Synaptic choices (perhaps to a file) so I can have the same packages added/removed on my next Mepis clean installation?

This is not a backup/restore or a re-master question.
You may like my method. I just use k3b to copy all the debs that I have downloaded onto a cd. Then I use the cd to install all the debs in 'synaptic/edit/add cdrom' from the cd. You can find all of the debs that you have in /var/cache/apt/archives. That way is easiest I think.
 
Old 06-01-2007, 07:29 PM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Also check out apt-cacher.
 
Old 06-02-2007, 11:40 AM   #7
fpd
Member
 
Registered: Aug 2004
Distribution: Mepis
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by mepnoob2005
You may like my method. I just use k3b to copy all the debs that I have downloaded onto a cd. Then I use the cd to install all the debs in 'synaptic/edit/add cdrom' from the cd. You can find all of the debs that you have in /var/cache/apt/archives. That way is easiest I think.
Excellent idea. However; I neglected to save any downloads, and used apt-clean as well. The deb directory you mention is empty on my box. I will keep this in mind for my next full install.
 
Old 06-03-2007, 08:25 AM   #8
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
A. What is wrong w/ post #2 for what you are trying to do?

B. Are you aware of dpgk -l? It will show a fairly comprehensive state of your system's packages. You can redirect it to a file or pipe it to a pager (e.g. less). If you use less, I suggest the following to be able to see all of the the info:
Code:
COLUMNS=160 dpgk -l  | less -S#37
 
Old 06-03-2007, 10:14 AM   #9
fpd
Member
 
Registered: Aug 2004
Distribution: Mepis
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by archtoad6
A. What is wrong w/ post #2 for what you are trying to do?

B. Are you aware of dpgk -l? It will show a fairly comprehensive state of your system's packages. You can redirect it to a file or pipe it to a pager (e.g. less). If you use less, I suggest the following to be able to see all of the the info:
Code:
COLUMNS=160 dpgk -l  | less -S#37
A. Nothing is wrong. I have not installed a new version yet. I have the "--get-selections" data in a file, and updated it whenever I do any Synaptic update.

B. I like the output of the 'dpkg -l' - Can the data be used for the purpose of updating the list of apps I want when I do a new-version install?
 
Old 06-05-2007, 10:30 AM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I'm sure it could be, it just would need "massaging" into the correct format for the installer/pkg._mgr. you intend to use. One of the benefits I see is that the ver. info. is there, so pinning would be possible.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Clean Install? Frank Soranno Slackware 8 12-09-2006 03:47 AM
Clean install, now what sky_neo Linux - Newbie 13 08-18-2006 02:24 PM
Clean Install KO_32 Linux - Newbie 8 07-15-2005 10:59 PM
want to do a clean install pete424 Linux - Newbie 3 03-04-2005 02:03 AM
Package selections for Server Install (Mandrake & Fedora) Ollie46 Linux - Security 1 07-23-2004 09:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > MEPIS

All times are GMT -5. The time now is 07:05 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