# Which command is used to list the gems used by an application?

**URL:** <https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192>\
**Category:** Rails\
**Created:** [February 2, 2009, 5:25am UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192 "2009-02-02T05:25:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![olivierntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Post date:** [February 2, 2009, 5:25am UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192/1 "2009-02-02T05:25:04Z")

</div>

Hi, I have been working on an application for a few months and  
installed some gems, but I don’t remember the exact list.

I want to deploy my app and I need to install the gems I used. Which  
command line is used for that?

thank u

---

<div class="post-metadata">

**Author:** ![olivierntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Post date:** [February 2, 2009, 5:41am UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192/2 "2009-02-02T05:41:26Z")

</div>

rake gems

also: rake --tasks

---

<div class="post-metadata">

**Author:** ![olivierntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Post date:** [February 2, 2009, 1:20pm UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192/3 "2009-02-02T13:20:25Z")

</div>

I want to deploy my app and I need to install the gems I used. Which  
command line is used for that

---

<div class="post-metadata">

**Author:** ![olivierntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Post date:** [February 2, 2009, 5:43am UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192/4 "2009-02-02T05:43:11Z")

</div>

On Mon, Feb 2, 2009 at 6:24 AM, olivierntk [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi, I have been working on an application for a few months and  
> installed some gems, but I don’t remember the exact list.
> 
> I want to deploy my app and I need to install the gems I used. Which  
> command line is used for that?
> 
> thank u
> 
> >

To list all your local gems use:  
gem list --local

To install all those gems on your remote machine, you can run:  
gem list --local --no-versions | xargs echo “gem install”  
to get a command line ready to install every gem (although you probably  
don’t want to install every local gem)

–  
Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)  
[http://www.linkedin.com/in/andrewtimberlake](http://www.linkedin.com/in/andrewtimberlake)

“I have never let my schooling interfere with my education” - Mark Twain

---

<div class="post-metadata">

**Author:** ![olivierntk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85e7bf/32.png) [@olivierntk](https://www.ruby-forum.com/u/olivierntk)\
**Post date:** [February 2, 2009, 1:38pm UTC](https://www.ruby-forum.com/t/which-command-is-used-to-list-the-gems-used-by-an-application/159192/5 "2009-02-02T13:38:24Z")

</div>

On Mon, Feb 2, 2009 at 2:20 PM, Nashg Cold  
\<removed\_email\_address@domain.invalid

> wrote:

> I want to deploy my app and I need to install the gems I used. Which  
> command line is used for that
> 
> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

gem install

–  
Andrew T.  
[http://ramblingsonrails.com](http://ramblingsonrails.com)  
[http://www.linkedin.com/in/andrewtimberlake](http://www.linkedin.com/in/andrewtimberlake)

“I have never let my schooling interfere with my education” - Mark Twain
