`curl http://example.com/foo/install.sh | sudo sh`
Equally bad is adding a new key to apt/(other package manager) and add a new source then apt-get install (which definitely runs as root).
Equally bad is adding a new key to apt/(other package manager) and add a new source then apt-get install (which definitely runs as root).