Update replaces rustup with rust

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:

[2021-11-20T02:17:06+0100] [PAMAC] synchronizing package lists
[2021-11-20T02:18:49+0100] [ALPM] transaction started
[2021-11-20T02:18:50+0100] [ALPM] removed rust-docs (1:1.55.0-1)
[2021-11-20T02:18:50+0100] [ALPM] removed rust-analyzer (20211115-1)
[2021-11-20T02:18:50+0100] [ALPM] removed rustup (1.24.3-2)
[2021-11-20T02:18:51+0100] [ALPM] installed rust (1:1.56.1-3)
[2021-11-20T02:18:51+0100] [ALPM] upgraded zensu (0.3-2 -> 0.3-3)
[2021-11-20T02:18:51+0100] [ALPM] transaction completed
[2021-11-20T02:18:52+0100] [ALPM] running '30-systemd-update.hook'...
[2021-11-20T02:18:52+0100] [ALPM] running '90-packagekit-refresh.hook'...

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.

You still have the pacman log /var/log/pacman.log

1 Like

Thanks, I added the relevant part from this file to my reply.

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. :wink: 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.

I know, that is why I am surprised here. The only thing I do is pamac update and I was using rustup for many months now. I always update my system with pamac update and did it today too to get the big Manjaro upgrade. A few hours later I did an update again and it replaced rustup with rust (yes, it asked me to remove those packages, I didn’t mean it did without my knowledge, but I mean I did not ask to do this).

So it seems like something with the dependencies changed. I end up replacing rust by rustup. So not sure why this happened at all.

At you to read :wink: it’s not manjaro

Thank you. Just a note here, I didn’t mean anything like “someones fault”. I just wanted understand what’s going on, because there was a possibility that I did something wrong. Now I know it is fine and everything is as supposed to be.

So thanks for the links, that explains it. (I’m not saying that i fully understand it, but it looks like something changed on Archlinux.)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.