Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a package manager for D?

I found SCons, which looks useful, but it's not exactly what I'm looking for. I don't really want a build tool; what I really want is a package manager.

Other languages have similar tools:

  • Python- easy_install or ppp
  • JavaScript/NodeJS- npm
  • Go- goinstall

I would like to have a single database of open-source D projects that can be integrated into a larger application with only a couple commands, such as (assuming dpack is the command):

# get source from database, run build script if there is one
dpack install some_package

# builds current package, grabbing dependencies as necessary
dpack build

# removes source (build will fail without it)
dpack remove

Is there anything like this for D? If not, I'll probably end up writing it myself.

like image 921
beatgammit Avatar asked Dec 09 '11 05:12

beatgammit


People also ask

Is there a package manager for Java?

Gradle is a tool that can be used to manage packages for a variety of different languages, including Java, C and JavaScript.

What is a package manager used for?

A package manager keeps track of what software is installed on your computer, and allows you to easily install new software, upgrade software to newer versions, or remove software that you previously installed.

Does Linux have a package manager?

Introduction. Ubuntu's package management system is derived from the same system used by the Debian GNU/Linux distribution. The package files contain all of the necessary files, meta-data, and instructions to implement a particular functionality or software application on your Ubuntu computer.


2 Answers

I found this,

http://code.dlang.org/about

It distrubute something called DUB packages.

DUB is s build tool for D projects with support for automatically retrieving dependencies and integrating them in the build process. The design emphasis is on maximum simplicity for simple projects, while providing the opportunity to customize things when needed.

like image 54
Javier Neyra Avatar answered Sep 21 '22 04:09

Javier Neyra


Update: Please see the top rated answer about Dub. It is now the defacto package manager for D and will soon to be the official package manager which will be included with D compilers.

There have been several attempts by various people and a lot of discussion. The only one I know of that is actively being worked on is Orbit by Jacob Carlborg.

like image 30
eco Avatar answered Sep 23 '22 04:09

eco