You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
337 B
10 lines
337 B
13 years ago
|
# Create a simple script that can be used to 'duplicate' a system.
|
||
|
print '#!/bin/sh'"\n" > apt-copy.sh
|
||
|
|
||
|
list=$(perl -m'AptPkg::Cache' -e '$c=AptPkg::Cache->new; for (keys %$c){ push @a, $_ if $c->{$_}->{'CurrentState'} eq 'Installed';} print "$_ " for sort @a;')
|
||
|
|
||
|
print 'aptitude install '"$list\n" >> apt-copy.sh
|
||
|
|
||
|
chmod +x apt-copy.sh
|
||
|
|