diff --git a/installation/linux/debian.md b/installation/linux/debian.md index d6e9e22f2..95f56c3d7 100644 --- a/installation/linux/debian.md +++ b/installation/linux/debian.md @@ -30,7 +30,7 @@ Follow the official [Debian wiki guidance](https://wiki.debian.org/DebianRepository/UseThirdParty#OpenPGP_Key_distribution). ```bash copy -curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg +sudo sh -c 'curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg' ``` ### Updated key from March 2022 @@ -61,10 +61,10 @@ which platforms are supported in each release. ## Update your sources lists For Debian, you must add the Fluent Bit APT server entry to your sources lists. -Add the following content at bottom of your `/etc/apt/sources.list` file. + ```bash copy -deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/debian/${CODENAME} ${CODENAME} main +echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/${CODENAME} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list ``` Replace _`CODENAME`_ with your specific diff --git a/installation/linux/raspbian-raspberry-pi.md b/installation/linux/raspbian-raspberry-pi.md index b7ebfba32..9df2c5f44 100644 --- a/installation/linux/raspbian-raspberry-pi.md +++ b/installation/linux/raspbian-raspberry-pi.md @@ -14,7 +14,7 @@ The first step is to add the Fluent Bit server GPG key to your keyring so you can get FLuent Bit signed packages: ```shell -curl https://packages.fluentbit.io/fluentbit.key | sudo apt-key add - +sudo sh -c 'curl https://packages.fluentbit.io/fluentbit.key | sudo apt-key add - ' ``` ### Updated key from March 2022 @@ -52,19 +52,19 @@ Add the following content at bottom of your `/etc/apt/sources.list` file. ### Raspbian 12 (Bookworm) ```text -deb https://packages.fluentbit.io/raspbian/bookworm bookworm main +echo "deb https://packages.fluentbit.io/raspbian/bookworm bookworm main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list ``` ### Raspbian 11 (Bullseye) ```text -deb https://packages.fluentbit.io/raspbian/bullseye bullseye main +echo "deb https://packages.fluentbit.io/raspbian/bullseye bullseye main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list ``` ### Raspbian 10 (Buster) ```text -deb https://packages.fluentbit.io/raspbian/buster buster main +echo "deb https://packages.fluentbit.io/raspbian/buster buster main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list ``` ### Update your repositories database diff --git a/installation/linux/ubuntu.md b/installation/linux/ubuntu.md index 11ad94cdd..16b709364 100644 --- a/installation/linux/ubuntu.md +++ b/installation/linux/ubuntu.md @@ -25,7 +25,7 @@ Follow the official [Debian wiki guidance](https://wiki.debian.org/DebianRepository/UseThirdParty#OpenPGP_Key_distribution). ```bash -curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg +sudo sh -c 'curl https://packages.fluentbit.io/fluentbit.key | gpg --dearmor > /usr/share/keyrings/fluentbit-keyring.gpg' ``` ### Updated key from March 2022 @@ -56,12 +56,11 @@ which platforms are supported in each release. ## Update your sources lists On Ubuntu, you need to add the Fluent Bit APT server entry to your sources lists. -Add the following content at bottom of your `/etc/apt/sources.list` file. Ensure -`CODENAME` is set to your specific [Ubuntu release name](https://wiki.ubuntu.com/Releases). +Ensure `CODENAME` is set to your specific [Ubuntu release name](https://wiki.ubuntu.com/Releases). For example, `focal` for Ubuntu 20.04. ```bash -deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/${CODENAME} ${CODENAME} main +echo "deb [signed-by=/usr/share/keyrings/fluentbit-keyring.gpg] https://packages.fluentbit.io/ubuntu/${CODENAME} ${CODENAME} main" | sudo tee /etc/apt/sources.list.d/fluent-bit.list ``` ### Update your repositories database