yumまわりメモ

yumでパッケージをダウンロードだけするコマンドを探していたら、"yum-downloadonly"なるパッケージが必要だと知った。
(https://access.redhat.com/kb/docs/DOC-16491)

現状を確認すると…

# rpm -qa | grep yum
yum-metadata-parser-1.1.2-3.el5
yum-3.2.22-20.el5
yum-updatesd-0.9-2.el5
yum-security-1.1.16-13.el5
yum-rhn-plugin-0.5.4-13.el5

入ってないね。

# yum search yum
================================= Matched: yum =================================
yum-updatesd.noarch : Update notification daemon
yum.noarch : RPM installer/updater
yum-NetworkManager-dispatcher.noarch : NetworkManager dispatcher plugin to help
                                     : yum, when changing networks
yum-aliases.noarch : Yum plugin to enable aliases filters
yum-basearchonly.noarch : Yum plugin to let Yum install only basearch packages.
yum-changelog.noarch : Yum plugin for viewing package changelogs before/after
                     : updating
yum-downloadonly.noarch : Yum plugin to add downloadonly command option
yum-fastestmirror.noarch : Yum plugin which chooses fastest repository from a
                         : mirrorlist
yum-filter-data.noarch : Yum plugin to list filter based on package data
yum-keys.noarch : Yum plugin to deal with signing keys
yum-kmod.noarch : Yum plugin to handle fedora kernel modules.
yum-list-data.noarch : Yum plugin to list aggregate package data
yum-metadata-parser.i386 : A fast metadata parser for yum
yum-protect-packages.noarch : Yum plugin to prevents Yum from removing itself
                            : and other protected packages
yum-protectbase.noarch : Yum plugin to protect packages from certain
                       : repositories.
yum-rhn-plugin.noarch : RHN support for yum
yum-security.noarch : Yum plugin to enable security filters
yum-skip-broken.noarch : Yum plugin to handle skiping packages with dependency
                       : problems
yum-tmprepo.noarch : Yum plugin to add temporary repositories
yum-updateonboot.noarch : Run yum update on system boot
yum-utils.noarch : Utilities based around the yum package manager
yum-verify.noarch : Yum plugin to add verify command, and options
yum-versionlock.noarch : Yum plugin to lock specified packages from being
                       : updated

インストール実行。

# yum install yum-downloadonly
Loaded plugins: rhnplugin, security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package yum-downloadonly.noarch 0:1.1.16-13.el5_4.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch      Version              Repository             Size
================================================================================
Installing:
 yum-downloadonly    noarch    1.1.16-13.el5_4.1    rhel-i386-server-5     11 k

Transaction Summary
================================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)

Total download size: 11 k
Is this ok [y/N]: y
Downloading Packages:
yum-downloadonly-1.1.16-13.el5_4.1.noarch.rpm            |  11 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : yum-downloadonly                                         1/1

Installed:
  yum-downloadonly.noarch 0:1.1.16-13.el5_4.1

Complete!

これで無事、パッケージのダウンロードができるようになった。

#うわ、2月に下書き保存しといたまま放置だった、これ。