Originally Posted by Dutch Master
Ok, you've created the selections.txt file. Now make a copy of the file /etc/apt/sources.list to your home dir:
cp /etc/apt/sources.list ~/sources.list
Once done, back up all data safely and once you've done that, your old system can be re-installed. Install a bare (minimum) Debian install. Log in and copy the sources.list and selections.txt files from the backup to your new system. As root, copy sources.list back to /etc/apt:
cp /home/<user-name>/sources.list /etc/apt/sources.list
Assuming you stay with the Debian version you had, now enter the one-liner I've posted and let it do its magic
If you change versions, edit the sources.list file accordingly.
Mind that if you stick with standard Debian packages (no multi-media or other 3rd party repo's) copying the sources.list file isn't really necessary. And if you change versions, it might actually be a bad idea to do too!
Thanks for the reply.
I don't think I made myself clear though.
The only list I got from that command was /home/walt/selections.list.
Walt by the way is a generic user name for generic installs of Wheezy where I go to play with new ideas or commands. I am not there right now but mounted the / partition for it and there is no copy of this file anywhere there.
My impression was that this file would be in the root partition somewhere or would need to be there to use it to reinstall. Seeing how there doesn't seem to be where should I put it or do I just leave it where is is in the /home/walt directory?
I actually think this would be a great way to install a copy on another box of an OS that I worked on here for someone else. There are several people I have run into that are very willing, indeed enthusiastic, about using Linux ir they don't have to install or set it up in the first place.
If they are at a remote ranch somewhere it is not easy to get to them very often. Most would be quite willing to do the install if this was all that was needed to bet it up and running.
I have a UPS unit but most folks don't. Power outages are not frequent but do happen. Had big fires here this year and you couldn't trust the power to be on from one minute to the next. I was shocked by the fact, in 08, that when the power died and the box did not shut down correctly my Linux install would actually work.
MS never did that for me.
Folks around here kind of like that idea along with the cost of the system. I could Mail them a correct disk and email everything else. May have to supply some install disks for sources as many remote ranches are still on dial up. Heck, the USPS only delivers 2 or 3 days a week to a lot of folks. If they can afford it some do have satalite connection but most don't.
This would work great.
Also be nice for me as I experiment with other installs to find things I want to change and this would be great. After the base install I could go to where ever my production OS is, run boinc and do my other things while a chroot environment took care of the new install.
Just really need to know where that file needs to go. Looked at the man page for dpkg and it didn't give me an answer although it was pretty clear on the command and also "--set-selections".
May just need to give it a whack with the thing in the /home/<user name> directory. May be where it looks for that.
The sources.list is not a problem with me. I have one that I use for all installs of Debian. Just change the version name. Has some handy commented out things in it like the commands for getting gpg keys.
Some folks like to play games on their box. I like to play games with Linux, particularly Debian and its relatives.
Right now I actually need a new install of testing on my main drive. Perfect time to try this after I get it to work somewhere else first.