diff --git a/docs/introduction/howtoget.rst b/docs/introduction/howtoget.rst index 0e2a3a99269f960102be7df6dd0abf1bd0690d88..a08782696880144ea2590f225de8996eafe589f6 100644 --- a/docs/introduction/howtoget.rst +++ b/docs/introduction/howtoget.rst @@ -108,17 +108,58 @@ If migrating from Serokell packages you can check out migration documentation Fedora Octez packages ~~~~~~~~~~~~~~~~~~~~~ -If you're using Fedora, you can install packages with Octez binaries -from the Octez release page indicated above -using ``rpm`` or ``dnf``. Currently it supports the latest LTS release for -Fedora and for RockyLinux. +If you're using Fedora, you can install packages with Octez binaries from the +Octez from our DNF repository. Currently we support the latest LTS release for +Fedora and for RockyLinux : -Upgrading to a new or more recent release requires downloading again all the ``rpm`` -packages and repeat the installation. +- ``rockylinux/9.3`` +- ``fedora/39`` +- ``fedora/42`` -For example using ``yum``:: +both on ``amd64`` and ``arm64`` architectures. + +In order to add the Tezos package repository to your machine, do: + +:: + + export distribution=rockylinux + export release=9.3 + +and run: + +.. literalinclude:: install-bin-rpm.sh + :language: shell + :start-after: [add repository] + :end-before: [end add repository] + +For ``rockylinux`` user you also need to add the ``devel`` repository + +:: - yum install ./octez-client-19.1-1.x86_64.rpm + dnf -y config-manager --set-enabled devel + +To update the local dnf registry run: + +:: + + dnf update + +We also maintain a separate repository for release candidates. To install +the last release candidate simply prepend ``RC/`` to the distribution name +as in ``export distribution=RC/rockylinux`` + +Then, to install the binaries, run the following commands: + +.. literalinclude:: install-bin-rpm.sh + :language: shell + :start-after: [install octez] + :end-before: [end install octez] + +To remove the Octez packages you can simply run the following command. + +.. literalinclude:: install-bin-rpm.sh + :language: shell + :start-after: [test autopurge] .. _getting_static_binaries: diff --git a/docs/introduction/install-bin-rpm.sh b/docs/introduction/install-bin-rpm.sh index 9483fc2026d8b4e4fb69dad46f6ea5136558cd7e..5b594bf8d1f730098e399c17a0ea3ff74d1749c8 100755 --- a/docs/introduction/install-bin-rpm.sh +++ b/docs/introduction/install-bin-rpm.sh @@ -41,14 +41,15 @@ if [ "$RELEASETYPE" = "Master" ]; then # Add the repository dnf -y config-manager --add-repo "https://packages.nomadic-labs.com/$distribution/dists/$release/" + # Install public key + rpm --import "https://packages.nomadic-labs.com/$distribution/octez.asc" + # [end add repository] + if [ "$distroname" = "rockylinux" ]; then dnf -y config-manager --set-enabled devel fi dnf -y update - # Install public key - rpm --import "https://packages.nomadic-labs.com/$distribution/octez.asc" - # [end add repository] else # Update and install the config-mananger plugin dnf -y update @@ -69,13 +70,14 @@ fi dnf -y install sudo -# [install tezos] +# [install octez] sudo dnf -y install octez-node sudo dnf -y install octez-client sudo dnf -y install octez-node sudo dnf -y install octez-baker sudo dnf -y install octez-dal-node sudo dnf -y install octez-smart-rollup-node +# [end install octez] # [test executables] octez-client --version @@ -84,4 +86,4 @@ octez-node --version "octez-accuser-$protocol" --version # [test autopurge] -sudo dnf -y remove octez-node octez-client octez-baker octez-dal-node +sudo dnf -y remove octez-node octez-client octez-baker octez-dal-node octez-smart-rollup-node