#!/bin/bash
sudo dpkg --get-selections > /root/selections.`hostname`.txt
syntax highlighted by
Code2HTML
, v. 0.9.1