読者です 読者をやめる 読者になる 読者になる

復興ログ

未来の被災地にいるアナタと数十年後のキミたちへ。すべての記録を残します。

yum memo

yumの使い方をメモメモ

yum アップデート

yum update

パッケージのインストール

yum install package
yum -y install package
yum update package
yum clean package // 物理削除
yum remove package

パッケージのリスト

yum list // インストール可能なパッケージ表示
yum list installed
yum list installed|grep httpd
yum list updates // インストールしたパッケージでアップデートが出来るパッケージ表示

その他

yum search package // レポジトリから検索するパッケージ
yum deplist package // パッケージの依存関係を表示

レポジトリ追加

yumの標準も便利だけど追加しておきます

remiレポジトリ追加

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

インストール時

yum install --enablerepo=remi package

help

$ yum --help
Loaded plugins: fastestmirror
usage: yum [options] COMMAND

List of Commands:

check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
help Display a helpful usage message
info Display details about a package or group of packages
install Install a package or packages on your system
list List a package or groups of packages
localinstall Install a local RPM
makecache Generate the metadata cache
provides Find what package provides the given value
reinstall reinstall a package
repolist Display the configured software repositories
resolvedep Determine which package provides the given dependency
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
upgrade Update packages taking obsoletes into account


options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
--showduplicates show duplicates, in repos, in list/search commands
-e [error level] error output level
-q, --quiet quiet operation
-v, --verbose verbose operation
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
-x [package], --exclude=[package]
exclude package(s) by name or glob
--disableexcludes=[repo]
disable exclude from main, for a repo or for
everything
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
--nogpgcheck disable gpg signature checking
--disableplugin=[plugin]
disable plugins by name
--enableplugin=[plugin]
enable plugins by name
--skip-broken skip packages with depsolving problems
--color=COLOR control whether color is used

Plugin Options:

広告を非表示にする