Re: Use case for aptitude-{create,run}-state-bundle ?
On Fri, 17 May 2013 18:24:21 -0700
Rick Thomas <rbthomas@pobox.com> wrote:
>
> Can anybody tell me when I might want to use aptitude-{create,run}-
> state-bundle ?
>
> Is it, for example, useful for cloning a machine configuration
> following a re-install from scratch?
>
> Thanks!
>
> Rick
>
>
#!/bin/bash
datetag=$(date +%Y-%m-%d_-_%H:%M:%S)
dpkg --get-selections > /root/dpkglist-$datetag.txt
On second machine:
## dpkg --set-selections < /root/dpkglist-$datetag.txt
## apt-get dselect-upgrade
should do the cloning job.
Reply to: