How to install Cargo on a RHEL Linux server?

后端 未结 1 374
一生所求
一生所求 2021-01-29 12:15

I tried installing Cargo on a RHEL server with:

curl https://sh.rustup.rs -sSf | sh

but after finishin

1条回答
  •  迷失自我
    2021-01-29 12:20

    1. First enable the rhel-7-variant-devtools-rpms repository

      subscription-manager repos --enable rhel-7-varient-devtools-rpms

      Replace variant with the Red Hat Enterprise Linux system variant (server or workstation)

    2. Enable the rhel-variant-rhscl-7-rpms repository:

      subscription-manager repos --enable rhel-variant-rhscl-7-rpms

    3. Add the Red Hat Developer Tools key to your system:

      cd /etc/pki/rpm-gpg

      wget -O RPM-GPG-KEY-redhat-devel https://www.redhat.com/security/data/a5787476.txt

      rpm --import RPM-GPG-KEY-redhat-devel

      Once the subscription is attached to the system and repositories enabled, you can install Red Hat Rust Toolset

    4. Then install rust-toolset-7

      yum install rust-toolset-7

      Cargo is provided by the rust-toolset-7-cargo package and is automatically installed with the rust-toolset-7 package.

    0 讨论(0)
提交回复
热议问题