Rust's simple download script

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 11 02:13:16 PST 2015


On 11/10/2015 02:12 PM, Márcio Martins wrote:
> 
> I also think curl | sh is bad, but the idea to have a quick no-brain
> "just works" installation is great. One good step would be providing
> packages for all major distros and providing a wget | pkginstall command
> which effectively does the same thing: wget DMD.deb && dpkg -i DMD.deb
> for Debian/Ubuntu

Unfortunately it's

sudo dpkg -i dmd.deb || true
sudo apt-get -fy install

because dpkg doesn't resolve/install dependencies on it's own and
apt-get can't install local packages.

It's simpler with rpm based packages.

sudo yum localinstall dmd.rpm
sudo dnf install dmd.rpm



More information about the Digitalmars-d mailing list