Add some default APT configuration and ensure to update repos and packages.

This commit is contained in:
Jeremy Gardais 2018-01-30 17:18:47 +01:00
parent 4dde22c1c2
commit 203f3bb27f
2 changed files with 22 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/sh #!/bin/sh
APT_CONF_INCLUDE_SRC="$(dirname $0)/stretch/etc/apt/apt.conf.d/*"
APT_CONF_INCLUDE_PATH="/etc/apt/apt.conf.d/"
RSYSLOGD_CONF_SRC="$(dirname $0)/stretch/etc/rsyslog.conf" RSYSLOGD_CONF_SRC="$(dirname $0)/stretch/etc/rsyslog.conf"
RSYSLOGD_CONF_PATH="/etc/rsyslog.conf" RSYSLOGD_CONF_PATH="/etc/rsyslog.conf"
RSYSLOGD_INCLUDE_SRC="$(dirname $0)/stretch/etc/rsyslog.d/*" RSYSLOGD_INCLUDE_SRC="$(dirname $0)/stretch/etc/rsyslog.d/*"
@ -10,7 +13,19 @@ LOGROTATE_CONF_PATH="/etc/logrotate.conf"
LOGROTATE_INCLUDE_SRC="$(dirname $0)/stretch/etc/logrotate.d/*" LOGROTATE_INCLUDE_SRC="$(dirname $0)/stretch/etc/logrotate.d/*"
LOGROTATE_INCLUDE_PATH="/etc/logrotate.d/" LOGROTATE_INCLUDE_PATH="/etc/logrotate.d/"
# apt configuration {{{
# ensure to have some default configuration for Apt
cp -- "${APT_CONF_INCLUDE_SRC}" "${APT_CONF_INCLUDE_PATH}"
# }}}
## Packages {{{ ## Packages {{{
# update repositories and packages
apt update
apt -y full-upgrade
# Ensure to have some basic packages # Ensure to have some basic packages
apt -y install aptitude tmux zsh apt -y install aptitude tmux zsh

View File

@ -0,0 +1,7 @@
// Should APT install recommended or suggested packages?
APT::Install-Recommends "false";
APT::Install-Suggests "false";
// Should APT autoremove recommended or suggested packages?
APT::AutoRemove::RecommendsImportant "false";
APT::AutoRemove::SuggestsImportant "false";