I installed xwindows and Gnome desktops on LinuxRedHat6.0. To install Oracle today, I need to install Xwindow. I wanted yuminstallxorg * gnome, however, Rhel6.0 has not been registered yet, so it cannot be yum. It is too hard to install rpm one by one. If there are hundreds of rpm, you have to handle the dependency of the package, now, I want to create a local yum server and find some information. The test is successful.
I installed xwindows and Gnome desktops on Linux RedHat 6.0. To install Oracle today, I need to install Xwindow, I wanted yum install xorg * gnome *, but my Rhel 6.0 was not registered and cannot be yum. It would be too hard to install one by one rpm. How about hundreds of rpm, we have to deal with the dependency of the package, so we can't wait for teng to die, so we just want to create a local yum server and find some information. The test is successful. The operation method is as follows:
Users who use RedHat Enterprise Edition for free all know that their services are charged and do not provide services without a registration code, including yum services. If we have to use Redhat Enterprise Edition, to facilitate management, we can build our own local YUM as follows:
1. Create a directory for storing the RPM package Source
Mkdir-p/usr/local/src/yum
2. Mount the installation disk
Mount/dev/cdrom/mnt
3, copy all the RPM Packages in the installation to the RPM package source directory on the server (because my simple desktop does not have an optical drive, I directly package all the rpm Packages in the Packages directory in the image to ftp)
Cp-rf/mnt/cdrom/Packages/usr/local/src/yum
4. Go to the YUM repository you created and install the createrepo tool.
Cd/usr/local/src/yum/rpms (I modified the Packages directory name to rpms)
Rpm-ivh createrepo-0.4.11-3.el5.noarch.rpm
5. Rebuild the Repository Information configuration file.
Createrepo/usr/local/src/yum (this configuration file is under/usr/local/src/yum/repodata)
6. Create a YUM configuration file.
Cd/etc/yum. repos. d
Mkdir bak
Mv *. repo bak (this yum. repos. d is empty during installation, so this operation can be omitted)
Create the yum. repo file in/etc/yum. repos. d and enter:
[Rpms]
Name = rpms
Baseurl = file: // usr/local/src/yum
Enabled = 1
Gpgcheck = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY-RedHat-release
7. Test
Yum list
Yum clear all