diff options
author | Jonas Smedegaard <dr@jones.dk> | 2006-05-10 13:52:31 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2006-05-10 13:52:31 +0000 |
commit | 4fe599d07cb8c9cb44c11a12e537cd309a87edde (patch) | |
tree | 4c3f99c7782454ee931a294e92278f47b794f8f7 | |
parent | 87a2955c71367518411d31d4f69d9cfba3d57b71 (diff) |
Added new backupninja snippet to dump package state info.
-rw-r--r-- | backupninja/packages.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backupninja/packages.sh b/backupninja/packages.sh new file mode 100644 index 0000000..c21912c --- /dev/null +++ b/backupninja/packages.sh @@ -0,0 +1,10 @@ +LANG=C + +dpkg --get-selections > /var/backups/dpkg-selections.txt + +aptitude -F '%p#%v#' search '~i!~M' > /var/backups/aptitude-installed-explicitly.txt +aptitude -F '%p#%v#' search '~i!~Odebian' > /var/backups/aptitude-installed-aliens.txt +aptitude -F '%p#' search '!~i~Rrecommends:(~i)' > /var/backups/aptitude-notinstalled-recommended.txt + +debconf-get-selections > /var/backups/debconf-questions.txt +debconf-get-selections --installer > /var/backups/debconf-questions-di.txt 2> /dev/null || true |