Rustup package does not provide rustup

Hi,

Is there a reason the rustup package does not provide the rustup command, despite dnf provides rustup saying so?

This is on Fedora Asahi Remix, but I was also able to replicate this in a container.

Logs:

[root@1eaf888510b5 /]# rustup
bash: rustup: command not found
[root@1eaf888510b5 /]# dnf install rustup
Updating and loading repositories:
Repositories loaded.
Package "rustup-1.28.2-2.fc41.aarch64" is already installed.

Nothing to do.
[root@1eaf888510b5 /]# dnf provides rustup
Updating and loading repositories:
Repositories loaded.
rustup-1.28.2-2.fc41.aarch64 : Manage multiple rust installations with ease
Repo         : @System
Matched From : 
Provide      : rustup = 1.28.2-2.fc41

rustup-1.28.2-2.fc41.aarch64 : Manage multiple rust installations with ease
Repo         : updates
Matched From : 
Provide      : rustup = 1.28.2-2.fc41

rustup-1.27.1-4.fc41.aarch64 : Manage multiple rust installations with ease
Repo         : fedora
Matched From : 
Provide      : rustup = 1.27.1-4.fc41

Maybe you have to run rustup-init (just a guess) or maybe checks the included docs?

This is what is in the rustup RPM:

$ rpmls rustup
-rwxr-xr-x  /usr/bin/rustup-init
drwxr-xr-x  /usr/lib/.build-id
drwxr-xr-x  /usr/lib/.build-id/82
lrwxrwxrwx  /usr/lib/.build-id/82/bdc66ff081da3440b49593519ef91f800e6bfd
-rw-r--r--  /usr/share/bash-completion/completions/rustup.bash
drwxr-xr-x  /usr/share/doc/rustup
-rw-r--r--  /usr/share/doc/rustup/CHANGELOG.md
-rw-r--r--  /usr/share/doc/rustup/README.md
-rw-r--r--  /usr/share/fish/vendor_completions.d/rustup.fish
drwxr-xr-x  /usr/share/licenses/rustup
-rw-r--r--  /usr/share/licenses/rustup/LICENSE-APACHE
-rw-r--r--  /usr/share/licenses/rustup/LICENSE-MIT
-rw-r--r--  /usr/share/licenses/rustup/LICENSE.dependencies
-rw-r--r--  /usr/share/zsh/site-functions/_rustup
1 Like

Installing Rust with rustup

To install the rustup installer run:

$ sudo dnf install rustup

Run rustup-init after installing the package to start the Rust installation.

1 Like

The previous comment is correct (we intentionally only ship “rustup-init”).

Note that this query only checks which package provides the string “rustup”, which the “rustup” package does (trivially, by being named “rustup”). To check which package provides an executable (or any other file), the query you would need to do would be different, in this case dnf provides /usr/bin/rustup.

Thx everyone!