Slashdot Mirror


A Tool to Change Distributions?

beton asks: "We've all come to the point where we feel the need to change distros. A friend of mine has been a loyal Red Hat user for over 4 years now, but now he'd like to try Debian. He's trying to accomplish this with minimal effort so I was wondering if there are any tools around that allow to change from Red Hat to Debian without having to start from a 'clean' PC and reconfigure everything to fit your needs. Such a tool should e.g. reinstall all your programs and should try to configure them using your current config files. I did some searching on Sourceforge and Freshmeat but I didn't find anything useful. Do any of you know such a tool or is the whole idea just impossible to accomplish?" Even limiting such a tool to the larger distributions out there, it would be a bear to implement such a tool and iron out all of the wrinkles. Of course, if all Linux distributions could agree on a file system standard, then such a tool may even be unnecessary, but I doubt that will happen in the near future. So how do you all weigh in on this issue? Would a distribution conversion tool be useful or would we all be better off with a file system standard that works across multiple distributions?

7 of 19 comments (clear)

  1. I have run across this by haplo21112 · · Score: 3, Informative

    I have myself run into this, I once upon a time was a stong believer in the Stampede .86,.89 Distrobutiuon but then the developers disappeared in the weeds. The world advanced the distro didn't and so many components started going out of date that attempting to compile anything because nearly impossible. So I decided it was time for an upgrade, Stampede didn't have anything new and stable, .90 couldn't even boot correctly on two test machines, the patch they released didn't help, .91 has ben on the to be released track forever. I started looking for a new distro...I picked one(for reason of not starting the usual my distro rocks flame war, I will not reveal which), and went about installing it. I did this on a clean drive with the old one relocated on the chain so i could reference it for the old configs. This seemed to work out well, about 2 hours after the OS install completed I was back up and running normally. I found that once the mail spools, and home directories were moved, and the users recreated (I had trouble getting the users and groups to move via just copying the passwd and groups files as some documentain suggests, but I only have 5 users so that wasn't bad), things were in pretty good shape. A little cut and paste in the apache configs, samba configs, and sendmail configs and things were truely in the right. I think its certianly possible to build a utility to make the moves in the same way, although some standardization of things like directory structure, and program/library location would definately help.

    --
    Power Corrupts,Absolute Power Corrupts Absolutely, leaving one person(group)in charge is absolutely corrupt.
    1. Re:I have run across this by dolo724 · · Score: 3, Interesting

      Do you think a HOWTO would be a better idea than a distro-swapping tool? I've done the same myself, out of frustration at the death of a fairly decent distro and an inability to update correctly. Might even be an easy task if you've got separate filesystems in use, except for distros which don't like /boot... Dang them!

      --
      But you just gotta have another sigarette
  2. My solution... by gid · · Score: 3, Informative

    I'm not really sure a distro swapping tool would work so hot, and you're probably not going to find anyone willing to write such a nightmare of a tool for free. :) I think a stardard format of sorts is the best way to go, but it's even that's gonna be a bear. This wouldn't be a problem if everyone would just run Debian. :)

    My personal solution is to tar up your /home and /usr/local and /usr/src directory, (plus whatever directories that you put specifically put files in) and then move the files over to your new install after you're up and running. I did the Redhat->Debian switch maybe 2 years ago and this is what I did with pretty good success. To tar up a directory do something like (as root):
    cd /; tar zcvf home.tar.gz home
    to extract (as root):
    cd /; mv home home.old; tar zxvf home.tar.gz

    (sorry if I just insulted your intelligence with those commands :)

    Debian likes to store your prefs in it's database of knowledge and then create config files on the fly whenever you upgrade a package, so just copying over your config files for each application probably isn't going to help a whole lot and you'll have lots of headaches trying something like this.

    Most of your user prefs should be in dot files (gimp prefs, icq login info, etc) in your home directory, so if you back that up you should hopefully be fine for the most part.

    Hey, no one every said linux was easy. :) Btw, I haven't once regretted switching from Redhat to Debian, the apt-get functionality is simply a beautiful tool.

    1. Re:My solution... by Saint+Aardvark · · Score: 2

      Amen to that, sister...whenever I back up, I back up /home and /etc (I use Debian, so I also throw in a list of installed debs rather than back up /usr or /usr/local); I can't imagine switching distros w/o /etc too.

    2. Re:My solution... by gmhowell · · Score: 2

      This is similar to how I switched from RH to Progeny. I installed Progeny with a / and /boot partition (over the old ones) and didn't specify a /home partition. /etc was tarred and gzipped.

      Upon new boot, change /etc/fstab to point to the old /home (I think I may have had to do a chmod on the directories. Easy for a home system, likely nightmare for a corporate system)

      Unzip the /etc and copy the pertinent files.

      And yes, I also switched purely for apt-get.

      --
      Jesus was all right but his disciples were thick and ordinary. -John Lennon
  3. sure, such a tool exists by mattdm · · Score: 2

    It's called "a knowledgable sysadmin".

    Seriously, changing distributions is non-trivial, and always will be. It's a shift to a whole new way of doing things. Computer-translation of human languages has come a long way, but there's no way a computer could translate a good novel, not with present technology and even in the future not without a lot of work. Switching distributions is a smaller problem, but it's still the same issue -- it requires too much *understanding* for current computer science.

    1. Re:sure, such a tool exists by mattdm · · Score: 2

      Sure, it'd be "nice" to be able to teleport from Moscow to Paris. I didn't say it wouldn't be "nice" -- I said it's currently not feasible. Go ahead and prove me wrong if you like, but swearing ain't gonna change the fact.