技術ブログ
注意! 本エントリでは、サポートされない手順について記載しています! ⇒ KROWN:158258 OracleVM 3 での Oracle VM Server コマンドラインから許可されている操作(※:参照にはサポート契約が必要)
Oracle VM 3.xのDom-0にインストールされているパッケージは必要最小限であるため、Dom-0を積極的に活用したいときに足かせとなります。必要なパッケージは環境の運用方法により異なりますが、man、sudo、perl、nkf あたりがほしくなるケースが多いのではないでしょうか。
このような場合は、Oracle が提供している Public yum repositoryからパッケージを追加できます。
[root@csov3s99 2]# cd /etc/yum.repos.d
[root@csov3s99 yum.repos.d]# wget http://public-yum.oracle.com/public-yum-el5.repo
--2012-11-28 14:24:45-- http://public-yum.oracle.com/public-yum-el5.repo
Resolving public-yum.oracle.com... 141.146.44.34
Connecting to public-yum.oracle.com|141.146.44.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3974 (3.9K) [text/plain]
Saving to: `public-yum-el5.repo'
100%[======================================================================================>] 3,974 --.-K/s in 0s
2012-11-28 14:24:45 (170 MB/s) - `public-yum-el5.repo' saved [3974/3974]
[root@csov3s99 yum.repos.d]# yum -y install man sudo perl nkf
el5_latest | 1.4 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package man.x86_64 0:1.6d-2.el5 set to be updated
--> Processing Dependency: groff >= 1.18 for package: man
--> Processing Dependency: nroff-i18n for package: man
---> Package nkf.x86_64 0:2.07-1.1.fc6 set to be updated
---> Package perl.x86_64 4:5.8.8-38.el5_8 set to be updated
---> Package sudo.x86_64 0:1.7.2p1-14.el5_8.4 set to be updated
--> Running transaction check
---> Package groff.x86_64 0:1.18.1.1-13.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
man x86_64 1.6d-2.el5 el5_latest 265 k
nkf x86_64 2.07-1.1.fc6 el5_latest 113 k
perl x86_64 4:5.8.8-38.el5_8 el5_latest 12 M
sudo x86_64 1.7.2p1-14.el5_8.4 el5_latest 360 k
Installing for dependencies:
groff x86_64 1.18.1.1-13.el5 el5_latest 1.9 M
Transaction Summary
================================================================================
Install 5 Package(s)
Upgrade 0 Package(s)
Total download size: 15 M
Downloading Packages:
(1/5): nkf-2.07-1.1.fc6.x86_64.rpm | 113 kB 00:00
(2/5): man-1.6d-2.el5.x86_64.rpm | 265 kB 00:01
(3/5): sudo-1.7.2p1-14.el5_8.4.x86_64.rpm | 360 kB 00:01
(4/5): groff-1.18.1.1-13.el5.x86_64.rpm | 1.9 MB 00:05
(5/5): perl-5.8.8-38.el5_8.x86_64.rpm | 12 MB 00:33
--------------------------------------------------------------------------------
Total 354 kB/s | 15 MB 00:43
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 1e5e0159
el5_latest/gpgkey | 2.7 kB 00:00 ...
Importing GPG key 0x1E5E0159 "Oracle OSS group (Open Source Software group) " from http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : groff 1/5
Installing : sudo 2/5
Installing : nkf 3/5
Installing : man 4/5
Installing : perl 5/5
Installed:
man.x86_64 0:1.6d-2.el5 nkf.x86_64 0:2.07-1.1.fc6
perl.x86_64 4:5.8.8-38.el5_8 sudo.x86_64 0:1.7.2p1-14.el5_8.4
Dependency Installed:
groff.x86_64 0:1.18.1.1-13.el5
Complete!