vagrant-cachier-ng/docs/buckets/apt.md

18 lines
496 B
Markdown
Raw Permalink Normal View History

2013-12-07 05:43:37 +00:00
# APT
2013-12-07 14:36:03 +00:00
Used by Debian-like Linux distros, will get configured under guest's `/var/cache/apt/archives`.
To manually enable it:
2013-12-07 05:43:37 +00:00
```ruby
Vagrant.configure("2") do |config|
config.vm.box = 'some-debian-box'
config.cache.enable :apt
end
```
_Please note that to avoid re-downloading packages, you should avoid `apt-get clean`
as much as possible in order to make a better use of the cache, even if you are
2013-12-07 14:36:03 +00:00
packaging a box since the downloaded packages are actually stored on the host
machine._