21
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

homebrewでVirtualBoxとVagrantインストール(初心者向け、Mac)

Posted at

趣旨

VirtualBoxとVagrantを利用してLinux環境構築をしたいときに
せっかくならhomebrew使ってやりたい!
ということで、やってみました。
自分の備忘録として、初心者向けの記事として、丁寧に記録を残したいと思います。

環境

homebrewはインストール済みの状態

homebrew

macOS向けのパッケージマネージャー

brew-cask

homebrewの拡張機能
MacのGUIアプリケーションもコマンド一発で管理できるように

virtualboxのダウンロード

$ brew search virtualbox
2018-11-10 12:17:02.595 defaults[32749:1604438] 
The domain/default pair of (kCFPreferencesAnyApplication, AppleLanguages) does not exist
==> Casks
virtualbox
virtualbox-extension-pack
homebrew/cask-versions/virtualbox-beta
homebrew/cask-versions/virtualbox-extension-pack-beta
AkienoMacBook-Pro:~ akie$ brew install virtualbox

VirtualBoxがhomebrew-caskでインストールできることが確認できました

$ brew cask install virtualbox
==> Satisfying dependencies
==> Downloading https://download.virtualbox.org/virtualbox/5.2.20/VirtualBox-5.2.20-125813-OSX.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'virtualbox'.
==> Installing Cask virtualbox
==> Running installer for virtualbox; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
installer: Package name is Oracle VM VirtualBox
installer: Installing at base path /
installer: The install was successful.
🍺  virtualbox was successfully installed!

インストールできました

確認

$ brew cask list
virtualbox

一覧にVirtual Boxが表示されました

Vagrantのインストール

VirtualBoxの操作を簡単にしてくれます

$ brew search vagrant
2018-11-10 12:37:31.730 defaults[34303:1623081] 
The domain/default pair of (kCFPreferencesAnyApplication, AppleLanguages) does not exist
==> Formulae
vagrant-completion

==> Casks
vagrant                             vagrant-manager                     vagrant-vmware-utility
$ brew cask install vagrant
==> Satisfying dependencies
==> Downloading https://releases.hashicorp.com/vagrant/2.2.0/vagrant_2.2.0_x86_64.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'vagrant'.
==> Installing Cask vagrant
==> Running installer for vagrant; your password may be necessary.
==> Package installers may write to any location; options such as --appdir are ignored.
Password:
installer: Package name is Vagrant
installer: Upgrading at base path /
installer: The upgrade was successful.
🍺  vagrant was successfully installed!
$ brew cask list
vagrant                             virtualbox

インストールされました

まとめ

コマンドだけでGUIアプリも管理できて、便利です!
VirtualBoxを使って、開発・勉強を進めていきたいと思います

TODO

The domain/default pair of (kCFPreferencesAnyApplication, AppleLanguages) does not exist

が出てくるのがよくわからないです。一旦保留。

21
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
21
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?