---
name: "gem2tgz"
section: "1"
platform: "linux"
package: "gem2deb"
version: "2.2.5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gem2tgz"
---

# gem2tgz(1)

converts Rubygems' .gem file into tarballs

## NAME

gem2tgz - converts Rubygems' .gem file into tarballs

## SYNOPSIS

**gem2tgz** \[*OPTIONS*\] *GEMNAME* \[*TARBALL*\] (to download the gem with *gem fetch*)

**gem2tgz** \[*OPTIONS*\] *GEMFILE* \[*TARBALL*\] (to use a local .gem file)

## DESCRIPTION

**gem2tgz** will convert the .gem file *GEM* into a tarball named *TARBALL*. If *TARBALL* is omitted, **gem2tgz** will try to guess the filename for the tarball by taking *GEM* and replacing '.gem' with '.tar.gz'.

## SEE ALSO

[**gem2deb**(1)](/gem2deb/1.md)

## COPYRIGHT AND AUTHORS

Copyright (c) 2010, Antonio Terceiro \<terceiro@softwarelivre.org\>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program.  If not, see \<http://www.gnu.org/licenses/\>.
