LoginSignup
14
13

More than 5 years have passed since last update.

yumでインストールしたrpmを消さずに残す設定

Posted at

/etc/yum.conf に

keepcache=1

と書いておきます ( man yum.confによるとデフォルトは1ですが、CentOS 6.3の/etc/yum.confにはkeepalive=0と書いてあるので、残したい場合は1に変更する必要があります)。

キャッシュされたrpmの一覧は以下のコマンドで見られます。

find /var/cache/yum -name '*.rpm'

なお、yum clean allとかyum clean packagesを実行すると消えますので注意。

参考: yum.conf(5): config file for yum - Linux man page

14
13
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
14
13