Comments (3)
I want to install rust into home folder and do not give rustup.sh root rights at all (using --prefix option) Can I do this after such change?
from rustup.sh.
This would be great. One downside: even if the script pre-authorizes itself with sudo -v
, the download might take long enough (or the timeout set short enough) that the timeout expires before it tries to use sudo
to run the actual install.
An alternative approach might instead be instead to simply detect when the script is run with sudo
and do most of the work in a child process that has its privileges revoked (sudo -u "#$SUDO_UID" ...
), then perform the actual install in the parent once the child indicates that it's performed all of the previous steps.
from rustup.sh.
@PetrGlad rustup has already adopted this change, and there's a --disable-sudo
flag to skip running sudo.
from rustup.sh.
Related Issues (20)
- Document urls and ports that rustup (and cargo will use)
- NetBSD installation fails
- Installation fails in popular docker base container buildpack-deps:jessie
- Segfault in rustup-init on OS X 10.10.5 HOT 1
- GPG warning about signature HOT 6
- Uninstaller should remove empty $prefix/share/doc/{cargo,rust} directories
- Why all documentation in /usr/local/share/doc/rust/html have executable bit set?
- Rustup segfaults on POWER8 HOT 3
- Failed and exited with 1 on TravisCI HOT 4
- Cannot find out what options are valid for --revision
- Can't build rls with nightly from rustup HOT 1
- Cannot remove target
- Nightly version different than proclaimed HOT 2
- rustup does things that take a long time before quick and easy things that can fail HOT 1
- rustup doesn't support aarch64 HOT 1
- Non-interactive install HOT 1
- rustup nightly install failing HOT 1
- Failed to install win32 toolchain on Linux host HOT 1
- ERROR: certificate common name “*.rust-lang.org” doesn’t match requested host name “sh.rustup.rs”
- Allow installation when /usr/bin/rust is present
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rustup.sh.