Add some default APT configuration and ensure to update repos and packages.
This commit is contained in:
parent
4dde22c1c2
commit
203f3bb27f
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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";
|
Loading…
Reference in New Issue