Automate the installation of postfix on Ubuntu

You can use pre-seeding for this, using the debconf-set-selections command to pre-answer the questions asked by debconf before installing the package. For example: debconf-set-selections <<< “postfix postfix/mailname string your.hostname.com” debconf-set-selections <<< “postfix postfix/main_mailer_type string ‘Internet Site'” apt-get install –assume-yes postfix

list all packages from a repository in ubuntu / debian

Simple: grep -h -P -o “^Package: \K.*” /var/lib/apt/lists/ppa.launchpad.net_*_Packages | sort -u Or more flexible: grep-dctrl -sPackage . /var/lib/apt/lists/ppa.launchpad.net_*_Packages For fancier querying, use apt-cache policy and aptitude as described here: aptitude search ‘~O LP-PPA-gstreamer-developers’

CentOS vs. Ubuntu [closed]

There are no benefits that I can discern for using CentOS (or RHEL) over Ubuntu if you are equally familiar with using both OSes. We use RHEL and CentOS heavily at work, and it’s just painful — we’re building custom packages left and right because the OS doesn’t come with them, and paid RedHat support … Read more