Merge pull request #472 from LebedevRI/apt

Fix apt.bcachefs.org readme - `sudo cat` doesn't work
This commit is contained in:
koverstreet 2025-11-18 09:42:15 -05:00 committed by GitHub
commit c28abdfa46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,14 +2,14 @@ To add this repository to your computer, do:
```bash ```bash
wget -qO- https://apt.bcachefs.org/apt.bcachefs.org.asc | sudo tee /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc wget -qO- https://apt.bcachefs.org/apt.bcachefs.org.asc | sudo tee /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
# Fingerprint: $GPG_SIGNING_SUBKEY_FINGERPRINT # Fingerprint: $GPG_SIGNING_SUBKEY_FINGERPRINT
sudo cat > /etc/apt/sources.list.d/apt.bcachefs.org.sources <<EOS sudo tee /etc/apt/sources.list.d/apt.bcachefs.org.sources > /dev/null <<EOF
Types: deb deb-src Types: deb deb-src
URIs: https://apt.bcachefs.org/unstable/ URIs: https://apt.bcachefs.org/unstable/
# Or replace unstable with your distro's release name # Or replace unstable with your distro's release name
Suites: bcachefs-tools-release Suites: bcachefs-tools-release
Components: main Components: main
Signed-By: /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc Signed-By: /etc/apt/trusted.gpg.d/apt.bcachefs.org.asc
EOS EOF
sudo apt update sudo apt update
sudo apt install bcachefs-tools sudo apt install bcachefs-tools
``` ```
@ -32,11 +32,11 @@ sudo add-apt-repository "deb https://apt.bcachefs.org/unstable bcachefs-tools-sn
If you want to ensure that the packages from this repository are always preferred, do: If you want to ensure that the packages from this repository are always preferred, do:
```bash ```bash
mkdir -p /etc/apt/preferences.d mkdir -p /etc/apt/preferences.d
sudo cat > /etc/apt/preferences.d/apt.bcachefs.org.pref <<EOP sudo tee /etc/apt/preferences.d/apt.bcachefs.org.pref > /dev/null <<EOF
Package: * Package: *
Pin: origin apt.bcachefs.org Pin: origin apt.bcachefs.org
Pin-Priority: 1000 Pin-Priority: 1000
EOP EOF
``` ```
> **_NOTE:_** > **_NOTE:_**