If you use YUM to install software, you don't need to look for the dependency RPM everywhere. Very convenient. Step 1: install yum Step 2: Download the createrepo package and install ftp: // 195.220.108.108/linux/dag/redhat/el4/en/i386/dag/RPMS/createrepo-0.4.6 -...
If you use YUM to install software, you don't need to look for the dependency RPM everywhere. Very convenient.
Step 1: install yum
Step 2: Download and install the createrepo package:
Ftp: // 195.220.108.108/linux/dag/redhat/el4/en/i386/dag/RPMS/createrepo-0.4.6-1.el4.rf.noarch.rpm
Installing the createrepo package rpm-ivh createrepo-0.4.6-1.el4.rf.noarch.rpm
When software preparation is complete, the following describes how to create a repo file.
Step 3: Mount the downloaded RHEL4.6-i386-AS-DVD.iso to local and complete the yum local source configuration
[Root @ Lovehack mnt] # mkdir/mnt/RHELAS4 // Create a RHELAS4 file to Mount ISO
[Root @ Lovehack mnt] # mount-o loop RHEL4.6-i386-AS-DVD.iso/mnt/RHELAS4 // mount iso
[Root @ Lovehack mnt] # mkdir/mnt/repodata // Create a repodata folder
[Root @ Lovehack mnt] # ln-s/mnt/RHELAS4/RedHat/RPMS/*. rpm/mnt/repodata // link all the rpm images
[Root @ Lovehack mnt] # createrepo/mnt/repodata // create repomd. xml and other required files. this process is relatively long.
1536/1536-vino-2.8.1-1.i386.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[Root @ Lovehack mnt] # cd/etc/yum. repos. d // enter the yum folder to create a repo file and back up the original. repo file
[Root @ Lovehack yum. repos. d] # ls
As4-base.repo.bak as4-update.repo.bak backup CentOS-Base.repo.bak
[Root @ Lovehack yum. repos. d] # vi iso. repo // Create an iso. repo file with the following content:
[Iso]
Name = iso
Baseurl = file: // mnt/repodata
Enabled = 1
Gpgcheck = 1
Gpgkey = file: // mnt/RHELAS4/RPM-GPG-KEY
Step 4: [root @ Lovehack yum. repos. d] # yum update
Setting up Update Process
Setting up repositories
Iso 100% | =================================| 951 B
Reading repository metadata in from local files
Primary.xml.gz 100% | =======================| 589 kB
Iso: ######################################## ######## 1536/1536
Added 1536 new packages, deleted 0 old in 17.81 seconds
No Packages marked for Update/Obsoletion
Step 5: install all the things you want.