In natty we got a new tool called “apt-clone”. Its a commandline application that can be used to clone the packages state of a system and restore it on another system. It will save the full state (sources.list, packages/versions installed, auto-installed inforrmation) and optionally using dpkg-repack in order to save not/no-longer downloadable package (like debs that got installed manually via e.g. gdebi or dpkg -i). The file is pretty small because it just stores references to the files in the archive. One nice feature of the restore is that it can be applied to a different root directory (creating a chroot). I use this to reproduce upgrade issues and its really handy for this. Whats missing currently is modified conffiles detection, but there is some work on this in trunk.

7 Responses to “apt-clone”

  1. Bilal Akhtar Says:

    Nice! Looking forward to using this tool!

  2. Anders F Björklund Says:

    Not to be confused with “apt-clone” (apt-get using ZFS snapshots):

    Click to access Nexenta_debconf.pdf

  3. foo Says:

    Can we get apt-clone and apt-btrfs-snapshot in Debian already?

  4. Fabian Rodriguez Says:

    Thanks for sharing, Michael. That’s great news. Do you think having an option to have the actual packages neatly put together in a single archive would be feasible ? Seems like the only missing piece for this to be a clean way to replicate an online system to offline LIveCD installs.

    I have yet to find a tool that will do this in a simple, elegant manner.

  5. cpcbegin Says:

    Is there any good manual to use apt-clone?

  6. roof coatings Says:

    Do you mind if I quote a few of your posts as long as I provide credit and sources back to your blog?
    My website is in the exact same niche as yours and my
    visitors would certainly benefit from a lot of the information you present here.

    Please let me know if this alright with you. Thank you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: