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

What does “debconf: delaying package configuration, since apt-utils is not installed” mean?

apt-utils contains the /usr/bin/apt-extracttemplates program which is used when packages need to ask you questions about how to be configured. This package being Priority: important, means it should really be installed except in rare circumstances. If there is configuration pending, dpkg-reconfigure [package] will perform it. If you missed configuring a number of packages and don’t … Read more

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’

List of files installed from apt package

Note: in the following commands, a command beginning with ‘root#’ means it needs to be run as root. To find which files were installed by a package, use dpkg -L: $ dpkg -L $package apt-file can tell you which files will be installed by a package before installing it: root# apt-get install apt-file root# apt-file … Read more

How do I get apt-get to ignore some dependencies?

Simple and easy solution: just specify the unwanted packages with an extra – after each of them. Example without the – switch: root@debian:~# apt-get install bsd-mailx Reading package lists… Done Building dependency tree Reading state information… Done The following extra packages will be installed: exim4-base exim4-config exim4-daemon-light liblockfile-bin liblockfile1 […] Example using the switch to … Read more