Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CentOS 5サーバーの束の構成を管理するために人形を使用しています。CentOS ベースの yum リポジトリ構成にいくつかのパッケージの除外を追加したいと思います。人形でこれを行う方法はありますか?
一部のパッケージの remi repo バージョンを使用する予定で、ベース バージョンを yum から除外したいと考えています。remi を有効にするために、yumrepoリソースを定義しました。
yumrepo
excludeパラメータを使用できますyumrepo
exclude
yumrepo { 'centos_base' : baseurl => "...", enabled => 1, priority => 1, exclude => "package-name", }
yumrepoパッケージをインストールするときに、特定のものを要求することもできます。
package { "package-name" : ensure => installed, require => Yumrepo["RemiRepo"], }