From 0f7b5c994e709f5e7d89f8cb7fff050a63958794 Mon Sep 17 00:00:00 2001 From: Sun Knudsen Date: Mon, 10 Jan 2022 10:48:52 -0500 Subject: [PATCH] Cleanup step --- how-to-configure-hardened-debian-server/README.md | 12 +++--------- how-to-configure-hardened-raspberry-pi/README.md | 14 ++++---------- 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/how-to-configure-hardened-debian-server/README.md b/how-to-configure-hardened-debian-server/README.md index 32e8fb7..d26d97a 100644 --- a/how-to-configure-hardened-debian-server/README.md +++ b/how-to-configure-hardened-debian-server/README.md @@ -292,16 +292,10 @@ nft list ruleset >> /etc/nftables.conf ### Step 16: update APT index and upgrade packages -#### Update APT index +```console +$ apt update -```shell -apt update -``` - -#### Upgrade packages - -```shell -apt upgrade -y +$ apt upgrade -y ``` ### Step 17: set timezone (the following is for Montreal time) diff --git a/how-to-configure-hardened-raspberry-pi/README.md b/how-to-configure-hardened-raspberry-pi/README.md index 20f4084..b89b468 100644 --- a/how-to-configure-hardened-raspberry-pi/README.md +++ b/how-to-configure-hardened-raspberry-pi/README.md @@ -390,18 +390,12 @@ timedatectl set-timezone America/Montreal systemctl disable dphys-swapfile ``` -### Step 27: update APT index and upgrade system +### Step 27: update APT index and upgrade packages -#### Update APT index +```console +$ apt update -```shell -apt update -``` - -#### Upgrade packages - -```shell -apt upgrade -y +$ apt upgrade -y ``` 👍