From 3e2d227035dadeb64fb8e505db5b6a7411748c72 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 23 Apr 2020 18:10:54 +0200 Subject: [PATCH] prefer apt over apt-get, fix CT appliance section Signed-off-by: Thomas Lamprecht --- pmg-installation.adoc | 19 +++++++++++++------ pmgupgrade.adoc | 13 +++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/pmg-installation.adoc b/pmg-installation.adoc index a173e77..b74921a 100644 --- a/pmg-installation.adoc +++ b/pmg-installation.adoc @@ -233,8 +233,8 @@ xref:pmg_package_repositories[Package repositories], you need to run: [source,bash] ---- -apt-get update -apt-get install proxmox-mailgateway +apt update +apt install proxmox-mailgateway ---- Installing on top of an existing Debian installation looks easy, but @@ -265,8 +265,15 @@ NOTE: It's recommended to use a static network configuration. If DHCP should be used ensure that the container always leases the same IP, for example, by reserving one with the containers network MAC address. -It is also possible to install {pmg} in a regular Debian LXC or VM, just as you would -xref:pmg_install_on_debian[on a normal Debian]. +Additionally you can also install this on top of a container based Debian +installation. After configuring the +xref:pmg_package_repositories[Package repositories], you need to run: + +[source,bash] +---- +apt update +apt install proxmox-mailgateway-container +---- [[pmg_package_repositories]] Package Repositories @@ -277,13 +284,13 @@ https://en.wikipedia.org/wiki/Advanced_Packaging_Tool[APT] as package management tool. The list of repositories is defined in `/etc/apt/sources.list` and `.list` files found inside `/etc/apt/sources.d/`. Updates can be installed directly using -`apt-get`, or via the GUI. +`apt`, or via the GUI. Apt `sources.list` files list one package repository per line, with the most preferred source listed first. Empty lines are ignored, and a `#` character anywhere on a line marks the remainder of that line as a comment. The information available from the configured sources is -acquired by `apt-get update`. +acquired by `apt update`. .File `/etc/apt/sources.list` ---- diff --git a/pmgupgrade.adoc b/pmgupgrade.adoc index 7f736b9..03caabd 100644 --- a/pmgupgrade.adoc +++ b/pmgupgrade.adoc @@ -24,16 +24,17 @@ pmgupgrade - Upgrade Proxmox Mail Gateway :pmg-toplevel: endif::manvolnum[] -This is a small wrapper around `apt-get dist-upgrade`. We use this to -print additional information (kernel restart required?), and -optionally run an interactive shell after the update. It is -invoked when starting an upgrade using the web GUI. +This is a small wrapper around `apt full-upgrade`. We use this to print +additional information, like when a node reboot due to a kernel update is +required. Additionally, it can run an interactive shell after the update, this +is used when starting an upgrade using the web GUI. If you are already logged in on the console, it is preferable to invoke -`apt-get` directly. +`apt` directly. ---- -# apt-get dist-upgrade +# apt update +# apt full-upgrade ---- ifdef::manvolnum[]