User:Vazhnov/Knowledge Base:replace rust with rust-bin

From Gentoo Wiki
Jump to:navigation Jump to:search
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 needed to switch from source-based dev-lang/rust to binary-based dev-lang/rust-bin, for example to decrease build time.

Here are the steps to do this:

Remove source-based Rust package:

root #emerge --ask --unmerge dev-lang/rust

Install binary-based Rust package (and virtual package which usually is using as dependency in other packages):

root #emerge --ask --oneshot virtual/rust dev-lang/rust-bin

root #emerge --ask --update --deep @world

Do a final cleanup:

root #emerge --depclean

This is not mandatory: mask a package to forbid installing in future:

root #echo 'dev-lang/rust' >> /etc/portage/package.mask

External links