News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Michael Maclean:
Why one-line installers are a bad idea
September 21, 2012 @ 11:35:29

There's a feature that's usage has been showing up more and more in software projects (both open source and not) that allows you to install their system with a single line command, usually involving curl and maybe piping it to a shell. In this recent post Michael Maclean takes a look at this trend and some of the possible pitfalls of the approach.

There has been a trend in the last while for various bits of useful software to have a one-line shell command recommended as the installation method. The usual form of this is to pipe something like curl or wget to some interpreter, be it bash, php, ruby, or some such. [...] This [type of] command takes the output of curl and pipes it straight to bash. I have several issues with this.

His three main points center around the fact that you cannot inspect the code before executing it with this method, that you can't verify the source of the code and that it teaches users bad habits of trusting in "magic commands" like these.

0 comments voice your opinion now!
installer oneline opinion curl bash shell magic


blog comments powered by Disqus

Similar Posts

PHPImpact Blog: PHP: Spaghetti alla Bolognese

JSClasses.org Blog: Lately in JavaScript podcast - Episode 5 (Javascript to Replace PHP?)

Slava Vishnyakov: PHP the Nice Way (Ever-evolving Huge Retailer Website Story)

PHPClasses.org: 7 Reasons Why WordPress Made PHP Popular, not PHP Frameworks

Mike Bernat's Blog: The Problem with Wordpress and Drupal


Community Events





Don't see your event here?
Let us know!


symfony2 experience framework testing community refactor list code series introduction release opinion podcast install threedevsandamaybe unittest laravel interview developer language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework