0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

yumコマンドでrpmパッケージのみダウンロードする

Posted at

インストールはせずに、パッケージだけ欲しいんだ!

コマンド

yumdownloader --enablerepo=remi-php72 php72 php-mbstring php-ldap php-cli php-common --destdir=./php --resolve

実行結果

# ls ./php
environment-modules-3.2.10-10.el7.x86_64.rpm  libxcb-1.13-1.el7.x86_64.rpm                   php72-php-json-7.2.22-1.el7.remi.x86_64.rpm  php-ldap-7.2.22-1.el7.remi.x86_64.rpm
libargon2-20161029-3.el7.x86_64.rpm           oniguruma5-6.9.3-1.el7.remi.x86_64.rpm         php72-runtime-2.0-1.el7.remi.x86_64.rpm      php-mbstring-7.2.22-1.el7.remi.x86_64.rpm
libX11-1.6.7-2.el7.x86_64.rpm                 php72-2.0-1.el7.remi.x86_64.rpm                php-cli-7.2.22-1.el7.remi.x86_64.rpm         scl-utils-20130529-19.el7.x86_64.rpm
libX11-common-1.6.7-2.el7.noarch.rpm          php72-php-cli-7.2.22-1.el7.remi.x86_64.rpm     php-common-7.2.22-1.el7.remi.x86_64.rpm      tcl-8.5.13-8.el7.x86_64.rpm
libXau-1.0.8-2.1.el7.x86_64.rpm               php72-php-common-7.2.22-1.el7.remi.x86_64.rpm  php-json-7.2.22-1.el7.remi.x86_64.rpm

オプション

  • --destdir ダウンロード先を指定
  • --resolve 依存関係のあるパッケージも合わせてダウンロード
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?