Network Engieer Linux Administrator
分类: LINUX
2013-01-28 22:05:11
We use the DVD as the source, try to use yum to install some package like libuuid.i386, but failed.
I found the repo in the DVD is uncompleted
The following steps is to r-create the repo.
Create a file named RH61-Media.repo in the
/etc/yum.repos.d folder.
Add following content to RH61-Media.repo
and save the file.
[RH61-Media]
name=RedHat-$releasever - Media
baseurl=file:///mnt/cdrom
gpgcheck=0
enabled=1
mount /dev/cdrom /mnt/cdrom –t iso9660
yum install libuuid.i386
Loaded plugins: product-id,
refresh-packagekit, subscription-manager
Updating Red Hat repositories.
Setting up Install Process
No package libuuid.i386 available.
Error: Nothing to do
We cannot install some packages on Redhat
6.1 x64, it is the Redhat 6.1 DVD source issue, the repo in the DVD is bad.
Please follow up the steps below, re-create
the repo, and then install the packages like libuuid.i386.
1. Boot from Redhat 6.1 DVD, start to
install the OS.
A. Configure the hostname
B. Configure the disk partition
C. Configure other settings
D. Choose the default installation, "Basic Server", reboot the server
2. The OS is installed, change the system settings:
A. Disable iptables and ip6tables
chkconfig iptables off
chkconfig ip6tables off
service iptables stop
service ip6tables stop
B. vi /etc/selinux/config #disable SELinux
SELINUX=disabled
D. Run "setup", configure network, eth0, IPv4 address, network mask, gateway, DNS server
E. Reboot the server
3. Please mount the redhat 6.1 x64 DVD, copy the files to /mnt/RHEL61-DVD/
mkdir /mnt/RHEL61-DVD
mount /dev/cdrom /mnt/cdrom -t iso9660
cp -r /mnt/cdrom/* /mnt/RHEL61-DVD/
rpm -ivh /mnt/RHEL61-DVD/Packages/createrepo-0.9.8-4.el6.noarch.rpm /mnt/RHEL61-DVD/Packages/deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm /mnt/RHEL61-DVD/Packages/python-deltarpm-3.5-0.5.20090913git.el6.x86_64.rpm
4. Create repo for the files
createrepo /mnt/RHEL61-DVD/
5. Configure the yum source
vi /etc/yum.repos.d/RH61-Media.repo
[RH61-Media]
name=RedHat-$releasever - Media
baseurl=file:///mnt/RHEL61-DVD
gpgcheck=0
enabled=1
6. Install the dependence packages
yum list
yum install libuuid.i686