The update went smooth, but a few hours later I got a small update to rust through pamac update, which replaces cargo and removed rustup and rust-analyzer (and rust-doc or so) alongside it. I did not save the output of it.
Edit: Here is the relevant part from “/var/log/pacman.log” when initially updating:
However when I try to install pamac install rustup rust-analyzer, this is what I get
To install (3):
lldb 13.0.0-1 extra 6,7 MB
rustup 1.24.3-2 community
rust-analyzer 20211115-1 community
To remove (1):
rust 1:1.56.1-3 (Conflicts With: cargo) extra
Total installed size: 8,1 MB
Total removed size: 481,6 MB
cargo is at version 1.56. I see that I can install pamac install rust-analyzer now, but why didn’t pamac solve this when updating rust itself, which depends on cargo and so on? It just removed the commands. I don’t now what is going on and if this works correctly.
Both rust and rustup provide cargo. You probably don’t need either installed except for building AUR packages. You should always choose rust unless otherwise directed.
cargo is available and that is not the problem. But I was using rustup to manager the rust installation and updates, so I can get it faster. It worked for several months like this now since I started with Rust at all. Now suddenly together with zensu (0.3-2 → 0.3-3) when the post update after the big update came in, it removed rustup and installed rust. But I did not ask to install rust, I just did an update.
The problem is, that the update removed rust-analyzer for a reason I don’t understand. I can install it again and it is the same version it seems. So shouldn’t this be NOT removed? rust-doc seems to be available within cargo, so that is not an issue in itself, but I don’t know what the implications are.
Get what faster? Are you manually installing Rust applications and updating crates? Pacman does not know about those. rust will not replace rustup or vice versa unless you tell it to, they only conflict. cargo is not a separate package.
I know, that is why I am confused about it. Why did pamac install rust and removed rustup? I did not asked to do this, just did an pamac update. I see that rustup is at version “1.24.3-2”, so did pamac decide to install the newer rust instead?
I used rustup to get updates related to Rust itself faster directly from the Rust team itself basically.
Remember, you are your own package manager. Only you decide what gets installed on your system. Look at your Pacman logs to see exactly what happened. Also check what recent changes have been made with those packages. Those come straight from Arch. Maybe there was a dependency switcheroo, I don’t know, I haven’t looked.