#!/bin/bash backup_dir=/var/backups/selections dpkg --get-selections > $backup_dir