File: bundle-update.txt [bundler-1.10.3 Documentation]

### Home Classes Methods

### Files

- bundle
- bundle-config
- bundle-config.txt
- bundle-exec
- bundle-exec.txt
- bundle-install
- bundle-install.txt
- bundle-package
- bundle-package.txt
- bundle-platform
- bundle-platform.txt
- bundle-update
- bundle-update.txt
- bundle.txt
- gemfile.5.txt
- Executable
- Gemfile

### Class Index

Quicksearch

- Bundler
- Bundler::BundlerError
- Bundler::CLI
- Bundler::CLI::Binstubs
- Bundler::CLI::Cache
- Bundler::CLI::Check
- Bundler::CLI::Clean
- Bundler::CLI::Common
- Bundler::CLI::Config
- Bundler::CLI::Console
- Bundler::CLI::Exec
- Bundler::CLI::Gem
- Bundler::CLI::Init
- Bundler::CLI::Inject
- Bundler::CLI::Install
- Bundler::CLI::Lock
- Bundler::CLI::Open
- Bundler::CLI::Outdated
- Bundler::CLI::Package
- Bundler::CLI::Platform
- Bundler::CLI::Show
- Bundler::CLI::Update
- Bundler::CLI::Viz
- Bundler::CurrentRuby
- Bundler::CyclicDependencyError
- Bundler::Definition
- Bundler::DepProxy
- Bundler::Dependency
- Bundler::Deployment
- Bundler::Deprecate
- Bundler::DeprecatedError
- Bundler::Dsl
- Bundler::Dsl::DSLError
- Bundler::EndpointSpecification
- Bundler::Env
- Bundler::Environment
- Bundler::Fetcher
- Bundler::Fetcher::AuthenticationRequiredError
- Bundler::Fetcher::BadAuthenticationError
- Bundler::Fetcher::Base
- Bundler::Fetcher::CertificateFailureError
- Bundler::Fetcher::Dependency
- Bundler::Fetcher::Downloader
- Bundler::Fetcher::FallbackError
- Bundler::Fetcher::Index
- Bundler::Fetcher::NetworkDownError
- Bundler::Fetcher::SSLError
- Bundler::GemHelper
- Bundler::GemHelpers
- Bundler::GemInstaller
- Bundler::GemNotFound
- Bundler::GemfileError
- Bundler::GemfileLockNotFound
- Bundler::GemfileNotFound
- Bundler::GemspecError
- Bundler::GitError
- Bundler::Graph
- Bundler::Graph::GraphVizClient
- Bundler::HTTPError
- Bundler::Index
- Bundler::Injector
- Bundler::InstallError
- Bundler::InstallHookError
- Bundler::Installer
- Bundler::InvalidOption
- Bundler::LazySpecification
- Bundler::LockfileError
- Bundler::LockfileParser
- Bundler::MarshalError
- Bundler::MatchPlatform
- Bundler::Molinillo
- Bundler::Molinillo::CircularDependencyError
- Bundler::Molinillo::DependencyGraph
- Bundler::Molinillo::DependencyGraph::Vertex
- Bundler::Molinillo::DependencyState
- Bundler::Molinillo::NoSuchDependencyError
- Bundler::Molinillo::PossibilityState
- Bundler::Molinillo::Resolver
- Bundler::Molinillo::Resolver::Resolution
- Bundler::Molinillo::ResolverError
- Bundler::Molinillo::SpecificationProvider
- Bundler::Molinillo::UI
- Bundler::Molinillo::VersionConflict
- Bundler::PathError
- Bundler::ProductionError
- Bundler::RemoteSpecification
- Bundler::Resolver
- Bundler::Resolver::Molinillo
- Bundler::Resolver::Molinillo::VersionConflict
- Bundler::Resolver::SpecGroup
- Bundler::Retry
- Bundler::RubyDsl
- Bundler::RubyVersion
- Bundler::RubyVersionMismatch
- Bundler::RubygemsIntegration
- Bundler::RubygemsIntegration::AlmostModern
- Bundler::RubygemsIntegration::Ancient
- Bundler::RubygemsIntegration::Future
- Bundler::RubygemsIntegration::Gem
- Bundler::RubygemsIntegration::Legacy
- Bundler::RubygemsIntegration::Legacy::Gem::SourceIndex
- Bundler::RubygemsIntegration::Modern
- Bundler::RubygemsIntegration::MoreFuture
- Bundler::RubygemsIntegration::MoreModern
- Bundler::RubygemsIntegration::Transitional
- Bundler::Runtime
- Bundler::SecurityError
- Bundler::Settings
- Bundler::SharedHelpers
- Bundler::SimilarityDetector
- Bundler::Source
- Bundler::Source::Git
- Bundler::Source::Git::GitCommandError
- Bundler::Source::Git::GitNotAllowedError
- Bundler::Source::Git::GitNotInstalledError
- Bundler::Source::Git::GitProxy
- Bundler::Source::Path
- Bundler::Source::Path::Installer
- Bundler::Source::Rubygems
- Bundler::Source::Rubygems::Remote
- Bundler::SourceList
- Bundler::SpecSet
- Bundler::StubSpecification
- Bundler::SystemRubyVersion
- Bundler::Thor
- Bundler::Thor::Actions
- Bundler::Thor::Actions::ClassMethods
- Bundler::Thor::AmbiguousCommandError
- Bundler::Thor::Base
- Bundler::Thor::Base::ClassMethods
- Bundler::Thor::Command
- Bundler::Thor::DynamicCommand
- Bundler::Thor::Error
- Bundler::Thor::Group
- Bundler::Thor::HiddenCommand
- Bundler::Thor::Invocation
- Bundler::Thor::Invocation::ClassMethods
- Bundler::Thor::InvocationError
- Bundler::Thor::LineEditor
- Bundler::Thor::LineEditor::Basic
- Bundler::Thor::LineEditor::Readline
- Bundler::Thor::LineEditor::Readline::PathCompletion
- Bundler::Thor::MalformattedArgumentError
- Bundler::Thor::RakeCompat
- Bundler::Thor::RequiredArgumentMissingError
- Bundler::Thor::Shell
- Bundler::Thor::Shell::Basic
- Bundler::Thor::Shell::Color
- Bundler::Thor::Shell::HTML
- Bundler::Thor::UndefinedCommandError
- Bundler::Thor::UnknownArgumentError
- Bundler::Thor::Util
- Bundler::UI
- Bundler::UI::RGProxy
- Bundler::UI::Shell
- Bundler::UI::Silent
- Bundler::VersionConflict
- Bundler::Worker
- Bundler::Worker::WrappedException
- Gem
- Gem::Dependency
- Gem::Platform
- Gem::Requirement
- Gem::Specification
- Net
- Net::HTTP
- Net::HTTP::Persistent
- Net::HTTP::Persistent::Error
- Net::HTTP::Persistent::SSLReuse
- ParallelInstaller
- ParallelInstaller::SpecInstallation
- Object

No matching classes.

BUNDLE-UPDATE(1) BUNDLE-UPDATE(1)

NAME

    bundle-update - Update your gems to the latest available versions

SYNOPSIS

    bundle update *gems [--group=NAME] [--source=NAME] [--local]

DESCRIPTION

    Update  the  gems specified (all gems, if none are specified), ignoring
    the previously installed gems specified in the  Gemfile.lock.  In  gen-
    eral, you should use bundle install(1) bundle-install.1.html to install
    the same exact gems and versions across machines.

    You would use bundle update to explicitly update the version of a  gem.

OPTIONS

    --group=<name>
           Only  update  the gems in the specified group. For instance, you
           can update all gems in the development group with bundle  update
           --group  development.  You  can  also  call  bundle update rails
           --group test to update the rails gem and all gems  in  the  test
           group, for example.

    --source=<name>
           The  name  of a :git or :path source used in the Gemfile(5). For
           instance,       with       a        :git        source        of
           http://github.com/rails/rails.git,  you would call bundle update
           --source rails

    --local
           Do not attempt to fetch gems remotely  and  use  the  gem  cache
           instead.

UPDATING ALL GEMS

    If  you  run  bundle update with no parameters, bundler will ignore any
    previously installed gems and resolve all dependencies again  based  on
    the latest versions of all gems available in the sources.

    Consider the following Gemfile(5):

        source "https://rubygems.org"

        gem "rails", "3.0.0.rc"
        gem "nokogiri"

    When  you  run  bundle install(1) bundle-install.1.html the first time,
    bundler will resolve all of the dependencies, all  the  way  down,  and
    install what you need:

        Fetching gem metadata from https://rubygems.org/.........
        Resolving dependencies...
        Installing builder 2.1.2
        Installing abstract 1.0.0
        Installing rack 1.2.8
        Using bundler 1.7.6
        Installing rake 10.4.0
        Installing polyglot 0.3.5
        Installing mime-types 1.25.1
        Installing i18n 0.4.2
        Installing mini_portile 0.6.1
        Installing tzinfo 0.3.42
        Installing rack-mount 0.6.14
        Installing rack-test 0.5.7
        Installing treetop 1.4.15
        Installing thor 0.14.6
        Installing activesupport 3.0.0.rc
        Installing erubis 2.6.6
        Installing activemodel 3.0.0.rc
        Installing arel 0.4.0
        Installing mail 2.2.20
        Installing activeresource 3.0.0.rc
        Installing actionpack 3.0.0.rc
        Installing activerecord 3.0.0.rc
        Installing actionmailer 3.0.0.rc
        Installing railties 3.0.0.rc
        Installing rails 3.0.0.rc
        Installing nokogiri 1.6.5

        Bundle complete! 2 Gemfile dependencies, 26 gems total.
        Use `bundle show [gemname]` to see where a bundled gem is installed.

    As  you  can see, even though you have just two gems in the Gemfile(5),
    your application actually needs 26 different  gems  in  order  to  run.
    Bundler  remembers the exact versions it installed in Gemfile.lock. The
    next time you  run  bundle  install(1)  bundle-install.1.html,  bundler
    skips  the  dependency  resolution  and  installs  the  same gems as it
    installed last time.

    After checking in the Gemfile.lock into version control and cloning  it
    on  another  machine,  running  bundle install(1) bundle-install.1.html
    will still install the gems that you installed  last  time.  You  don't
    need to worry that a new release of erubis or mail changes the gems you
    use.

    However, from time to time, you might want to update the gems  you  are
    using  to  the  newest  versions that still match the gems in your Gem-
    file(5).

    To do this, run bundle update, which will ignore the Gemfile.lock,  and
    resolve  all the dependencies again. Keep in mind that this process can
    result in a significantly different set of the 25 gems,  based  on  the
    requirements  of  new gems that the gem authors released since the last
    time you ran bundle update.

UPDATING A LIST OF GEMS

    Sometimes, you want to update a single gem in the Gemfile(5), and leave
    the  rest  of the gems that you specified locked to the versions in the
    Gemfile.lock.

    For instance, in the scenario above,  imagine  that  nokogiri  releases
    version 1.4.4, and you want to update it without updating Rails and all
    of its dependencies. To do this, run bundle update nokogiri.

    Bundler will update nokogiri and any of  its  dependencies,  but  leave
    alone Rails and its dependencies.

OVERLAPPING DEPENDENCIES

    Sometimes,  multiple  gems declared in your Gemfile(5) are satisfied by
    the same second-level dependency. For instance, consider  the  case  of
    thin and rack-perftools-profiler.

        source "https://rubygems.org"

        gem "thin"
        gem "rack-perftools-profiler"

    The  thin  gem  depends  on  rack >= 1.0, while rack-perftools-profiler
    depends on rack ~> 1.0. If you run bundle install, you get:

        Fetching source index for https://rubygems.org/
        Installing daemons (1.1.0)
        Installing eventmachine (0.12.10) with native extensions
        Installing open4 (1.0.1)
        Installing perftools.rb (0.4.7) with native extensions
        Installing rack (1.2.1)
        Installing rack-perftools_profiler (0.0.2)
        Installing thin (1.2.7) with native extensions
        Using bundler (1.0.0.rc.3)

    In this case, the two gems have their own set of dependencies, but they
    share  rack  in  common.  If  you  run bundle update thin, bundler will
    update daemons, eventmachine and rack, which are dependencies of  thin,
    but   not   open4   or   perftools.rb,   which   are   dependencies  of
    rack-perftools_profiler. Note that bundle update thin will update  rack
    even though it's also a dependency of rack-perftools_profiler.

    In  short,  when  you  update  a  gem using bundle update, bundler will
    update all dependencies of that gem,  including  those  that  are  also
    dependencies of another gem.

    In this scenario, updating the thin version manually in the Gemfile(5),
    and then running  bundle  install(1)  bundle-install.1.html  will  only
    update  daemons  and  eventmachine, but not rack. For more information,
    see  the  CONSERVATIVE  UPDATING  section  of  bundle  install(1)  bun-
    dle-install.1.html.

RECOMMENDED WORKFLOW

    In  general, when working with an application managed with bundler, you
    should use the following workflow:

    o   After you create your Gemfile(5) for the first time, run

        $ bundle install

    o   Check the resulting Gemfile.lock into version control

        $ git add Gemfile.lock

    o   When checking out this repository on another  development  machine,
        run

        $ bundle install

    o   When checking out this repository on a deployment machine, run

        $ bundle install --deployment

    o   After  changing  the  Gemfile(5)  to reflect a new or update depen-
        dency, run

        $ bundle install

    o   Make sure to check the updated Gemfile.lock into version control

        $ git add Gemfile.lock

    o   If bundle install(1) bundle-install.1.html reports a conflict, man-
        ually update the specific gems that you changed in the Gemfile(5)

        $ bundle update rails thin

    o   If  you want to update all the gems to the latest possible versions
        that still match the gems listed in the Gemfile(5), run

        $ bundle update

                                May 2015                   BUNDLE-UPDATE(1)

[Validate]

Generated with the Darkfish Rdoc Generator 2.