#๐Ÿšฒ๐Ÿ  `dagger mod use`

1 messages ยท Page 1 of 1 (latest)

surreal owl
#

๐Ÿšฒ๐Ÿ  dagger mod use

hot citrus
#

dagger mod get?

surreal owl
#

yeah or that

hot citrus
#

get or install sound good to me since it's used to both add and update

surreal owl
#

FYI @winter coyote

#

I propose that we choose whatever is the most common in other package managers

winter coyote
#

In go it's get. In npm it's install I think??

#

In python I have no idea, cc @shut veldt

surreal owl
#

Asking chatgpt for a table ๐Ÿ™‚

winter coyote
#

I think I like install the most. get feels too ambiguous (what am I getting? could be confused with download)

surreal owl
#
| Package Manager | Command          | Example                   |
|-----------------|------------------|---------------------------|
| APT (Debian)    | `apt-get install`| `apt-get install package` |
| APK (Alpine)    | `apk add`        | `apk add package`         |
| YUM (RHEL)      | `yum install`    | `yum install package`     |
| DNF (Fedora)    | `dnf install`    | `dnf install package`     |
| Zypper (openSUSE)| `zypper install`| `zypper install package`  |
| Pacman (Arch)   | `pacman -S`      | `pacman -S package`       |
| NPM (Node.js)   | `npm install`    | `npm install package`     |
| Pip (Python)    | `pip install`    | `pip install package`     |
| Gem (Ruby)      | `gem install`    | `gem install package`     |
| Composer (PHP)  | `composer require` | `composer require package`|
| NuGet (.NET)    | `nuget install`  | `nuget install package`   |
| Chocolatey (Windows) | `choco install` | `choco install package`|
| Homebrew (macOS) | `brew install`  | `brew install package`    |
| Snap            | `snap install`   | `snap install package`    |
| Flatpak         | `flatpak install`| `flatpak install package` |
winter coyote
#

oh yeah, duh, I've definitely run pip install before ๐Ÿ˜…

surreal owl
#

Asked for more data:

| Language/Environment | Package Manager | Command            | Example                     |
|----------------------|-----------------|--------------------|-----------------------------|
| Debian/Ubuntu        | APT             | `apt-get install`  | `apt-get install package`   |
| Alpine Linux         | APK             | `apk add`          | `apk add package`           |
| Red Hat/CentOS       | YUM             | `yum install`      | `yum install package`       |
| Fedora               | DNF             | `dnf install`      | `dnf install package`       |
| openSUSE             | Zypper          | `zypper install`   | `zypper install package`    |
| Arch Linux           | Pacman          | `pacman -S`        | `pacman -S package`         |
| Node.js              | NPM             | `npm install`      | `npm install package`       |
| Python               | Pip             | `pip install`      | `pip install package`       |
| Python               | Poetry          | `poetry add`       | `poetry add package`        |
| Ruby                 | Gem             | `gem install`      | `gem install package`       |
| PHP                  | Composer        | `composer require` | `composer require package`  |
| .NET                 | NuGet           | `nuget install`    | `nuget install package`     |
| Windows              | Chocolatey      | `choco install`    | `choco install package`     |
| macOS                | Homebrew        | `brew install`     | `brew install package`      |
| Universal Linux      | Snap            | `snap install`     | `snap install package`      |
| Universal Linux      | Flatpak         | `flatpak install`  | `flatpak install package`   |
| Rust                 | Cargo           | `cargo install`    | `cargo install package`     |
| Java                 | Maven           | `mvn install`      | `mvn install:install-file`  |
| R                    | CRAN            | `install.packages` | `install.packages("package")`|
| Haskell              | Cabal           | `cabal install`    | `cabal install package`     |
| Dart                 | Pub             | `pub get`          | `pub get package`           |
| Go                   | Go              | `go get`           | `go get package`            |

shut veldt
#

In python it's usually install, unless it's a package manager with support for lock files, in which case install is usually about installing from the lock file and then there's add for adding a dependency to it.

winter coyote
#

So any objections to install? That seems like the most common by far. And it feels pretty reasonable just on it's own even ignoring precedent

surreal owl
#

Works for me