Advertisement
Guest User

Untitled

a guest
Apr 21st, 2016
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.86 KB | None | 0 0
  1. root@e1666efa0c3d:/# curl -sL https://deb.nodesource.com/setup_4.x |  bash -
  2. bash: curl: command not found
  3. root@e1666efa0c3d:/# apt-get update && apt-get install -y devscripts curl
  4. root@e1666efa0c3d:/# curl -sL https://deb.nodesource.com/setup_4.x |  bash -
  5.  
  6. ## Installing the NodeSource Node.js 4.x LTS Argon repo...
  7.  
  8.  
  9. ## Populating apt-get cache...
  10.  
  11. ## Installing packages required for setup: apt-transport-https...
  12.  
  13. + apt-get install -y apt-transport-https > /dev/null 2>&1
  14.  
  15. ## Confirming "jessie" is supported...
  16.  
  17. + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_4.x/dists/jessie/Release'
  18.  
  19. ## Adding the NodeSource signing key to your keyring...
  20.  
  21. + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
  22. OK
  23.  
  24. ## Creating apt sources list file for the NodeSource Node.js 4.x LTS Argon repo...
  25.  
  26. + echo 'deb https://deb.nodesource.com/node_4.x jessie main' > /etc/apt/sources.list.d/nodesource.list
  27. + echo 'deb-src https://deb.nodesource.com/node_4.x jessie main' >> /etc/apt/sources.list.d/nodesource.list
  28.  
  29. ## Running `apt-get update` for you...
  30.  
  31. + apt-get update
  32.  
  33. ## Run `apt-get install nodejs` (as root) to install Node.js 4.x LTS Argon and npm
  34.  
  35. root@e1666efa0c3d:/# mkdir -p /foo/debian
  36. root@e1666efa0c3d:/# cd foo/
  37. root@e1666efa0c3d:/foo# echo "foo (1.0.0) UNRELEASED; urgency=medium
  38. >
  39. >   * Initial release. (Closes: #XXXXXX)
  40. >
  41. >  -- anon  Wed, 20 Apr 2016 13:48:31 +0200" > debian/changelog
  42. root@e1666efa0c3d:/foo#
  43. root@e1666efa0c3d:/foo# echo "Source: foo
  44. > Build-Depends:
  45. >  nodejs (= 0.10.29~dfsg-2)
  46. >
  47. > Package: foo
  48. > Architecture: all" > debian/control
  49. root@e1666efa0c3d:/foo# dpkg -l nodejs
  50. dpkg-query: no packages found matching nodejs
  51. root@e1666efa0c3d:/foo# mk-build-deps -i
  52. parsechangelog/debian: warning:     debian/changelog(l5): badly formatted trailer line
  53. LINE:  -- anon  Wed, 20 Apr 2016 13:48:31 +0200
  54. parsechangelog/debian: warning:     debian/changelog(l5): found eof where expected more change data or trailer
  55. dh_testdir
  56. dh_testroot
  57. dh_prep
  58. dh_testdir
  59. dh_testroot
  60. dh_install
  61. dh_installdocs
  62. dh_installchangelogs
  63. dh_compress
  64. dh_fixperms
  65. dh_installdeb
  66. dh_gencontrol
  67. dh_md5sums
  68. dh_builddeb
  69. dpkg-deb: building package `foo-build-deps' in `../foo-build-deps_1.0.0_all.deb'.
  70.  
  71. The package has been created.
  72. Attention, the package has been created in the current directory,
  73. not in ".." as indicated by the message above!
  74. Selecting previously unselected package foo-build-deps.
  75. Correcting dependencies... Done
  76. The following packages will be REMOVED:
  77.  foo-build-deps
  78. 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
  79. 1 not fully installed or removed.
  80. After this operation, 2048 B disk space will be freed.
  81. Do you want to continue? [Y/n]
  82. Removing foo-build-deps (1.0.0) ...
  83. root@e1666efa0c3d:/foo# dpkg -l nodejs
  84. dpkg-query: no packages found matching nodejs
  85. root@e1666efa0c3d:/foo#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement