0

I need to install git on a machine which doesn't have internet connection. I am wondering if there is any option to ask yum to keep a backup of rpm and dependencies it downloads.

OS: CENTOS

Srikanth P Vasist
  • 1,327
  • 2
  • 14
  • 26

1 Answers1

0

1.Downloadonly plugin for yum

Install the package including "downloadonly" plugin: Raw (RHEL5)

# yum install yum-downloadonly

(RHEL6)

# yum install yum-plugin-downloadonly
  1. Run yum command with "--downloadonly" option as follows:

    yum install --downloadonly --downloaddir=directory package

  2. Confirm the RPM files are available in the specified download directory.

source

user1403360
  • 931
  • 1
  • 12
  • 17