Extract packaging commands to packages.sh.   Install pg and ruby from rpm.