14
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

posted at

updated at

Julia Pkg modeの操作

Julia: ver.1.0.2
参考:
- julia 0.6からjulia 1.0への移行
- 公式ドキュメント/ Standard Library / Pkg

Pkg modeとは

version1.0から新たに導入された.
juliaモード(julia>となっている状態)で]を入力すると(v1.0) pkg>に変化する.

終了方法

deleteキーを押すだけ.(これ調べるのに時間かかった笑)

コマンド

help

これを見れば,大体解決する.

(v1.0) pkg> help
  Welcome to the Pkg REPL-mode. To return to the julia> prompt, either press
  backspace when the input line is empty or press Ctrl+C.

  Synopsis

  pkg> cmd [opts] [args]

  Multiple commands can be given on the same line by interleaving a ; between
  the commands.

  Commands

  activate: set the primary environment the package manager manipulates

  add: add packages to project

  build: run the build script for packages

  develop: clone the full package repo locally for development

  free: undoes a pin, develop, or stops tracking a repo

  gc: garbage collect packages not used for a significant time

  generate: generate files for a new project

  help: show this message

  instantiate: downloads all the dependencies for the project

  pin: pins the version of packages

  precompile: precompile all the project dependencies

  preview: previews a subsequent command without affecting the current state

  remove: remove packages from project or manifest

  resolve: resolves to update the manifest from changes in dependencies of
  developed packages

  status: summarize contents of and changes to environment

  test: run tests for packages

  update: update packages in manifest

add

複数個もOK

(v1.0) pkg> add Example1 Example2 Example3

URLでもOK

(v1.0) pkg> add https://github.com/JuliaLang/Example.jl

各Packageのversionを確認したい時: status

(v1.0) pkg> status

特定のPackageのversionはどうやって確認できるのだろうか??

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
14
Help us understand the problem. What are the problem?