Yumの構成と初歩的な使用
Yum構成の前提は、オプティカル(光学式)ドライブをマウントしたり、他のYUMソースをマウントしたりすることです.私は通常、地元のYUMソース、ISO、NFS、その他に傾いていますが、その中でISOの構成が最もEasyです.
YUMのプロファイルは:/etc/yumにあります.repos.d/ディレクトリの下、xxx.repo.
新しいrepo:isoを作成します.repo.
これで、YUMが似合う.
次の操作を行います.
——
To be Continue.
YUMのプロファイルは:/etc/yumにあります.repos.d/ディレクトリの下、xxx.repo.
- [root@RHEL ~]# cd /etc/yum.repos.d/
- [root@RHEL yum.repos.d]# ls
- redhat.repo rhel-debuginfo.repo
- [root@RHEL yum.repos.d]#
新しいrepo:isoを作成します.repo.
- [root@RHEL yum.repos.d]# vim iso.repo
- [root@RHEL yum.repos.d]# cat iso.repo
- [Server]
- name=Server
- baseurl=file:///iso/Server
- gpgcheck=0
-
- [VT]
- name=VT
- baseurl=file:///iso/VT
- gpgcheck=0
-
- [Cluster]
- name=Cluster
- baseurl=file:///iso/Cluster
- gpgcheck=0
-
- [ClusterStorage]
- name=ClusterStorage
- baseurl=file:///iso/ClusterStorage
- gpgcheck=0
- [root@RHEL yum.repos.d]#
これで、YUMが似合う.
次の操作を行います.
- [root@RHEL yum.repos.d]# yum list | grep libXp
- Unable to read consumer identity
- libXpm.i386 3.5.5-3 installed
- libXpm.x86_64 3.5.5-3 installed
- libXpm-devel.x86_64 3.5.5-3 installed
- libXp.i386 1.0.0-8.1.el5 Server
- libXp.x86_64 1.0.0-8.1.el5 Server
- libXp-devel.i386 1.0.0-8.1.el5 Server
- libXp-devel.x86_64 1.0.0-8.1.el5 Server
- libXpm-devel.i386 3.5.5-3 Server
- [root@RHEL yum.repos.d]#
- [root@RHEL yum.repos.d]# yum install -y libXp
- Loaded plugins: katello, product-id, security, subscription-manager
- Updating certificate-based repositories.
- Unable to read consumer identity
- Setting up Install Process
- Resolving Dependencies
- --> Running transaction check
- ---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated
- ---> Package libXp.x86_64 0:1.0.0-8.1.el5 set to be updated
- --> Finished Dependency Resolution
-
- Dependencies Resolved
-
- ===============================================================================================================================================================================================
- Package Arch Version Repository Size
- ===============================================================================================================================================================================================
- Installing:
- libXp i386 1.0.0-8.1.el5 Server 22 k
- libXp x86_64 1.0.0-8.1.el5 Server 23 k
-
- Transaction Summary
- ===============================================================================================================================================================================================
- Install 2 Package(s)
- Upgrade 0 Package(s)
-
- Total download size: 45 k
- Downloading Packages:
- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Total 11 MB/s | 45 kB 00:00
- Running rpm_check_debug
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Installing : libXp 1/2
- Installing : libXp 2/2
- Cluster/productid | 1.7 kB 00:00
- ClusterStorage/productid | 1.8 kB 00:00
- Server/productid | 1.7 kB 00:00
- Installed products updated.
-
- Installed:
- libXp.i386 0:1.0.0-8.1.el5 libXp.x86_64 0:1.0.0-8.1.el5
-
- Complete!
- [root@RHEL yum.repos.d]#
——
To be Continue.