Installing Mailutils Using Apt-Get Without User Intervention

How can I automate dpkg/apt-get?

For packages that ask questions through debconf (which is what puts up the ncurses display), you can pre-answer the questions. For sun-java, the questions can be pre-answered by following the instructions at http://www.davidpashley.com/blog/debian/java-license

Ubuntu dockerfile - mailutils install

Use the following dockerfile:

FROM ubuntu:latest
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update && apt-get install -y mailutils

The important part is setting debconf to noninteractive mode.

Closing apt-get terminal pop-up

Pressing F12 on the terminal solved the issue!

How to attach a file using mail command on Linux?

Example using uuencode:

uuencode surfing.jpeg surfing.jpeg | mail sylvia@home.com

and reference article:

http://www.shelldorado.com/articles/mailattachments.html

Note:

you may apt install sharutils to have uuencode command



Related Topics



Leave a reply



Submit