User:Vazhnov/Knowledge Base:replace rust with rust-bin
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
Even though this page is in the user namespace, corrections and additions are much appreciated! This is simply wiki policy, this page can be moved to the main wiki as soon as it achieves critical mass more.
Even though this page is in the user namespace, corrections and additions are much appreciated! This is simply wiki policy, this page can be moved to the main wiki as soon as it achieves critical mass more.
It may be desirable to switch from source-based dev-lang/rust to binary-based dev-lang/rust-bin, for example to avoid the compilation time involved in the from-source package.
Note
It is also possible to install dev-lang/rust from the binhost.
It is also possible to install dev-lang/rust from the binhost.
Here are the steps to do this:
Install binary-based Rust package:
root #
emerge --ask dev-lang/rust-bin
Remove source-based Rust package:
root #
emerge --ask --deselect dev-lang/rust
Do a wold upgrade
root #
emerge --ask --update --deep @world
Do a final cleanup:
root #
emerge --depclean
Optional:
While dev-lang/rust-bin should satisfy any dependencies in ::gentoo, mask dev-lang/rust to prevent it being pulled in again:
root #
echo 'dev-lang/rust' >> /etc/portage/package.mask
External links
- [gentoo-user] How to switch from rust to rust-bin? — discussion with details