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

From Gentoo Wiki
Jump to: navigation, search

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