Skip to content

02. Maintaining your local development environment

alawvt edited this page Mar 31, 2021 · 4 revisions

Maintaining your local development environment

Free up disk space

If your LDE disk becomes full, try these instructions.

Update dependencies

If "vagrant up" fails, or just at regular intervals, be sure to update all the dependencies for your local development environment. These commands will do so.

Keep vagrant box up-to-date

vagrant box update

Update / Upgrade Homebrew

From the command line

brew update -- updates Homebrew list of packages

brew upgrade -- upgrades Homebrew installed packages

2021-03-31: brew upgrade is currently breaking python with pyenv/shims/python: line 21: /usr/local/Cellar/pyenv/1.2.23/libexec/pyenv: No such file or directory. Running pyenv rehash, https://github.com/pyenv/pyenv/issues/1716, seems to solve this.

Update XCode

Note: 2018-12-11 Really we need command line tools, rather than all of XCode. I had to delete then reinstall HomeBrew to get command line tools installed in the preferred directory for HomeBrew.

Install XCode releases from Apple store or https://developer.apple.com/downloads/.

Update VirtualBox

VirtualBox can be updated from the graphical client application (the VirtualBox virtual machine must be stopped first). In the Mac OSX client, this is done in the VirtualBox menu with the menu command "Check for Updates." If this fails (which it does in some versions), you can download a newer version of VirtualBox from https://www.virtualbox.org/wiki/Downloads.

If you get errors about shared folders after updating VirtualBox (or Vagrant), follow the instructions at http://kvz.io/blog/2013/01/16/vagrant-tip-keep-virtualbox-guest-additions-in-sync/.

Update Vagrant

New versions of Vagrant can be downloaded from https://www.vagrantup.com/downloads.html

Update Ubuntu

The virtual server runs Ubuntu, which can be updated and upgraded from the command line with these commands:

sudo apt-get update

sudo apt-get upgrade