Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Update Ubuntu and Debian instructions to use new repository
Browse files Browse the repository at this point in the history
We now have a repository that only contains a single `default`
distribution, because the package is generic enough to works across all
recent Ubuntu and Debian releases.

The new repository includes old versions in the `Packages` index to
allow users to install old versions via `apt install crate=x.y.z`

It also contains ARM64 packages.
  • Loading branch information
mfussenegger committed Dec 19, 2023
1 parent c2e543b commit 21eb67c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 26 deletions.
29 changes: 11 additions & 18 deletions docs/self-hosted/debian.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,16 @@ CrateDB repositories:

.. code-block:: sh
# Add HTTPS support
sh$ sudo apt install apt-transport-https
# Download the CrateDB GPG key
sh$ wget https://cdn.crate.io/downloads/apt/DEB-GPG-KEY-crate
# Add the key to Apt
sh$ sudo apt-key add DEB-GPG-KEY-crate
# Add CrateDB repositories to Apt
# `lsb_release -cs` returns the codename of your OS
echo "deb https://cdn.crate.io/downloads/apt/stable/ $(lsb_release -cs) main" |
sudo tee /etc/apt/sources.list.d/crate-stable.list
# Add the CrateDB GPG key
sh$ wget -qO- https://cdn.crate.io/downloads/apt/DEB-GPG-KEY-crate | sudo tee /etc/apt/trusted.gpg.d/crate.asc
# Add CrateDB repository to Apt
sh$ echo "deb https://cdn.crate.io/downloads/debian/stable/ default main" | sudo tee /etc/apt/sources.list.d/crate-stable.list
.. NOTE::

CrateDB provides a *stable release* and a *testing release* channel. To use
the testing channel, replace ``stable`` with ``testing`` in the command
CrateDB provides two repositories. A *stable* and a *testing* repository. To use
the testing repository, replace ``stable`` with ``testing`` in the command
above. You can read more about our `release workflow`_.

Now update Apt:
Expand All @@ -68,10 +59,12 @@ You can now install CrateDB:
sh$ sudo apt install crate
After the installation is finished, the ``crate`` service should be
up-and-running.
After the installation is finished, you can start the ``crate`` service::

sh$ sudo systemctl start crate

Once the service is up and running, you can access CrateDB by visiting::

You should be able to access it by visiting::

http://localhost:4200/

Expand Down
16 changes: 8 additions & 8 deletions docs/self-hosted/ubuntu.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@ CrateDB repositories:
# Add the key to Apt
sh$ sudo apt-key add DEB-GPG-KEY-crate
# Add CrateDB repositories to Apt
# `lsb_release -cs` returns the codename of your OS
sh$ sudo add-apt-repository "deb https://cdn.crate.io/downloads/deb/stable/ $(lsb_release -cs) main"
# Add CrateDB repository to Apt
sh$ sudo add-apt-repository "deb https://cdn.crate.io/downloads/debian/stable/ default main"
.. NOTE::

CrateDB provides a *stable release* and a *testing release* channel. To use
the testing channel, replace ``stable`` with ``testing`` in the command
CrateDB provides two repositories. A *stable* and a *testing* repository. To use
the testing repository, replace ``stable`` with ``testing`` in the command
above. You can read more about our `release workflow`_.

Now update Apt:
Expand All @@ -64,10 +63,11 @@ You can now install CrateDB:
sh$ sudo apt install crate
After the installation is finished, the ``crate`` service should be
up-and-running.
After the installation is finished, you can start the ``crate`` service::

You should be able to access it by visiting::
sh$ sudo systemctl start crate

Once the service is up and running, you can access CrateDB by visiting::

http://localhost:4200/

Expand Down

0 comments on commit 21eb67c

Please sign in to comment.