yumめも

■proxy(/etc/yum.conf)
proxy=http://aaa.bbb.ccc:0000/
proxy_username=user
proxy_password=password
■グループIDの取得
yum grouplist -v
■パッケージグループ情報
yum groupinfo グループID

例) サーバー (GUI 使用)の場合
yum groupinfo graphical-server-environment
■インストール済パッケージ
yum list installed
■利用可能なパッケージ
yum list available
■ローカルDVDからのインストール
事前準備(CentOS-Media.repo ファイルの編集)
baseurlとenabledを変更。当該repoファイルの使い方は、ヘッダにも書かれているが、下段にも記載しておく。
[root@o12r2 yum.repos.d]# cat /etc/yum.repos.d/CentOS-Media.repo
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-7. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c7-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c7-media [command]

[c7-media]
name=CentOS-$releasever - Media
#baseurl=file:///media/CentOS/
# file:///media/cdrom/
# file:///media/cdrecorder/
# file:///run/media/oracle/CentOS 7 x86_64/
baseurl=file:///run/media/oracle/CentOS\ 7\ x86_64/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[root@o12r2 yum.repos.d]#
yum操作
[root@o12r2 yum.repos.d]# yum --disablerepo=\* --enablerepo=c7-media install hoge