Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Debian and Ubuntu build + package repo #385

Closed
Daniel15 opened this issue Sep 21, 2016 · 3 comments
Closed

Add Debian and Ubuntu build + package repo #385

Daniel15 opened this issue Sep 21, 2016 · 3 comments

Comments

@Daniel15
Copy link
Member

Daniel15 commented Sep 21, 2016

Ubuntu is by far the most popular Linux distribution, so I think a fairly large portion of Yarn users will be using it in their development environment (often via Docker or Vagrant). We should build Debian/Ubuntu packages as part of the build, to allow users to simply do apt-get install yarn to install it, and their regular system updates (apt-get update && apt-get upgrade ) will keep it up-to-date.

We should also consider a Chocolatey package for Windows users, but that can go in a separate task.

Examples of what other projects do:

Advantages of using the system's native package manager rather than something like npm install -g yarn:

  • Upgrades are handled the same way as all other software on your system (apt-get upgrade). It's not a special snowflake.
  • All the security problems with npm (eg. packages not being signed) make it less than ideal for anything installed system wide. apt-get gives you proper GPG signature verification.
  • Using npm means you're tightly-coupled to npm. If you later want to have a better installation solution, you need to have this awkward transition period where you try to get users to switch to the newer installation method.
  • The setup instructions need the whole weird "install Node.js first, then ensure npm is up-to-date, then install Yarn" thing. That'd be like telling people to manually install their npm dependencies 😆 . With a proper package management system, the Yarn package would simply have a dependency on the Node.js package, and "apt-get install yarn" would install both.

If we want to appeal to people that have limited Node.js experience, we shouldn't make any assumptions that they know anything about the Node.js ecosystem or what "npm" even is.

@cpojer
Copy link
Contributor

cpojer commented Sep 21, 2016

Let's have this discussion in #275.

@cpojer cpojer closed this as completed Sep 21, 2016
@Daniel15
Copy link
Member Author

Oops, I searched and missed that! Sorry @cpojer!

@Daniel15 Daniel15 mentioned this issue Sep 21, 2016
18 tasks
@bestander
Copy link
Member

We build rpm for Linux internally at FB.
I wonder if we could share the build script

On Wednesday, 21 September 2016, Daniel Lo Nigro notifications@github.com
wrote:

Ubuntu is by far the most popular Linux distribution. We should build
Debian/Ubuntu packages as part of the build, to allow users to simply do apt-get
install yarn to install it, and their regular system updates (apt-get
update && apt-get upgrade ) will keep it up-to-date.

We should also consider a Chocolatey package for Windows users, but that
can go in a separate task.

Examples of what other projects do:

Advantages of using the system's native package manager rather than
something like npm install -g yarn:

  • Upgrades are handled the same way as all other software on your
    system (apt-get upgrade). It's not a special snowflake.
  • All the security problems with npm (eg. packages not being signed)
    make it less than ideal for anything installed system wide. apt-get gives
    you proper GPG signature verification.
  • Using npm means you're tightly-coupled to npm. If you later want to
    have a better installation solution, you need to have this awkward
    transition period where you try to get users to switch to the newer
    installation method.
  • The setup instructions need the whole weird "install Node.js first,
    then ensure npm is up-to-date, then install Yarn
    " thing. That'd be
    like telling people to manually install their npm dependencies 😆 .
    With a proper package management system, the Yarn package would simply have
    a dependency on the Node.js package, and "apt-get install yarn" would
    install both.

If we want to appeal to people that have limited Node.js experience, we
shouldn't make any assumptions that they know anything about the Node.js
ecosystem or what "npm" even is.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#385, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACBdWOCzzu5EwUfev6K2tA-0BFbUdG1nks5qsLr2gaJpZM4KCZ1H
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants