Linux Journal A blog about Ubuntu, Linux, Android and IT
  • Jun
    23

    With apt-clone transfer the installation of a computer to other

    Filed under: Other;

    Who work longer hours with an Ubuntu or Debian system, of course, who knows to appreciate the package management. She is one of the arguments pro Linux, if not THE argument. Who does not have only one computer, but in addition to the desktop or a notebook, a netbook so often wants to have installed the same packages on all its computers.So you can seamlessly handle all the tasks on all computers. There have been around for some time tricks, how to create a package list on a system, and these grossed then on another computer. However, this method comes with manually installed packages and additional sources are no longer really well clear, so that since Natty Ubuntu with apt-clone is a tool that simplifies the cloning systems.

    View

    How can you let

    Addressed issue the command dpkg installed packages. With a bit of shell magic can be created from this list for a file that can then use on another computer to install the same packages. The bottom line is that the whole thing so …

    # Package list on machine A create …$ Dpkg – get-selections | '! / Deinstall | purge | hold / {print $ 1}' awk>Packages.list# Install packages from the list on machine B.$ Xargs-a “packages.list” sudo apt-get installNow this approach works

    Unfortunately only as long as the list of available packages in the repositories is identical. References the list on a package that was installed manually or on a package from an additional source package, it must only through the / etc / apt / sources.list and add about $ add-apt-repository will. Manually installed packages would have even manually delete from the list.

    Here comes now the apt-clone into the game. This ensures not only a package list, but also collects the sources.list including another in / etc / apt / sources.list.d / sources stored and created even manually installed programs again installable packages. So you can clone in fact the entire system without having to drive great effort. The only configuration files from / etc are not yet backed up, so you must re-configure services, but it is also currently working.

    If you want to try the whole thing, then you have to clone firstonce apt-install on both computers. The package is only for Ubuntu Natty 11.04, older versions of Ubuntu can, therefore, on this convenient way not to clone …

    $ Sudo apt-get install apt-cloneThen you must

    Apt-clone it to the finish system set up to run. The “clone – width-dpkg-repack” ensures that packages are installed by hand again re-packaged so that you can install it on the second system throws me back again When the whole thing from a few errors, however. had no effect.

    $ Sudo apt-clone clone – with-dpkg-repack /dpkg-deb: warning: './dpkg-repack-7727/DEBIAN/control' contains user-defined field 'Original Maintainer'dpkg-deb: warning: ignoring a warning about the control filedpkg-deb: building package `libxapian15 'in` ./libxapian15_1.0.20-2_amd64.deb'.dpkg-deb: building package `teamviewer6 'in` ./teamviewer6_6.0.9224_amd64.deb'.dpkg-deb: building package `OpenShot-doc 'in` ./openshot-doc_1.3.0-maverick1_all.deb'.dpkg-deb: warning: './dpkg-repack-8460/DEBIAN/control' contains user-defined field 'Python version'dpkg-deb: warning: ignoring a warning about the control filedpkg-deb: building package `arte +7 recorder-5 'in` maverick_all.deb / arte +7 recorder-5_5.0.beta3 ~ ~ PPA3.'.dpkg-deb: warning: './dpkg-repack-8498/DEBIAN/control' contains user-defined field 'Original Maintainer'dpkg-deb: warning: ignoring a warning about the control file…Then she finds

    In the root directory / file name with the apt-clone-state rechnername.tar.gz, this plug in the information gathered. You have no packages installed manually, it is only a few KB in size. If, however, programs like Skype and Teamviewer Co. manually. Deb files have been installed, the fuse is blown, of course, quite quickly.

    Packt

    Your file onto a USB stick or push them over the network on your second computer and starts on the second computer also apt-clone. This time you surrender to the restore option, that the package information to be restored from the archive.

    $ Sudo apt-clone restore apt-clone-state rechnername.tar.gz

    Depending on how many packets have been missing, will now manage the package to be busy for a while, because I had installed on my test system, for example, a complete latex environment, it is now installed on the cloned system, etc. …

    .

    No Comments

Leave a reply