Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I misspelled the name of a box when I added it to my box list:

vagrant box list

Can I rename the box without repackaging it?

share|improve this question

2 Answers 2

You can simply rename the dir that represents the box. If your vagrant files are in their default dir (i.e. /path/to/your/home/.vagrant.d) you can just do:

mv vagrant_path/boxes/box_to_rename vagrant_path/boxes/new_box_name

Also be sure to change the Vagrantfile to use the new label for the box. You just need to change the config.vm.box directive to reflect the changes.

share|improve this answer
This didn't work for me - I suspect there is a config file somewhere that needs to be updated as well. @Till's suggestion worked. –  Adrian Mouat Feb 11 at 11:35

I would do this:

$ vagrant box repackage mis-spelled-name
[vagrant] Compressing package to: /Users/johndoe/package.box
$ vagrant box add correct-name /Users/johndoe/package.box

Not the worst to know about these two anyway, since you can frequently update base boxes (e.g. to update the kernal, software and guest editions) to avoid running all these required updates every time you vagrant up.

share|improve this answer
Is it okay to delete the package.box file when this is done? –  Peter Hanley Oct 8 '12 at 0:33
@PeterHanley Yep. Once imported, it's ok to get rid off it. –  Till Oct 8 '12 at 16:35
Thanks, I appreciate you getting back to me! –  Peter Hanley Oct 10 '12 at 21:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.