Thursday, August 2, 2018

RPM Install issue in CentOS/RHEL6

[root@oracle~]# yum install telnet
Loaded plugins: security
Setting up Install Process
No package telnet available.
Error: Nothing to do

[root@oracle yum.repos.d]# wget http://yum.oracle.com/public-yum-ol6.repo
--2018-02-08 06:56:28--  http://yum.oracle.com/public-yum-ol6.repo
Resolving yum.oracle.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address “yum.oracle.com”

Ping  yum.oracle.com and add ip entry for yum.oracle.com in /etc/hosts file

[root@oracle yum.repos.d]# wget http://yum.oracle.com/public-yum-ol6.repo
--2018-02-08 06:57:48--  http://yum.oracle.com/public-yum-ol6.repo
Resolving yum.oracle.com... 23.205.118.252
Connecting to yum.oracle.com|23.205.118.252|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 9547 (9.3K) [text/plain]
Saving to: “public-yum-ol6.repo.1”

100%[=========================================================================================>] 9,547       --.-K/s   in 0s

2018-02-08 06:57:49 (63.4 MB/s) - “public-yum-ol6.repo.1” saved [9547/9547]


[root@oracle yum.repos.d]# yum install telnet
Loaded plugins: security
Setting up Install Process
Repository 'public_ol6_UEK_latest': Error parsing config: Error parsing "enabled = '$uek'": invalid boolean value
Repository 'public_ol6_UEKR3_latest': Error parsing config: Error parsing "enabled = '$uekr3'": invalid boolean value
Repository 'public_ol6_UEKR4': Error parsing config: Error parsing "enabled = '$uekr4'": invalid boolean value
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again

[root@oracle yum.repos.d]# uname -a
Linux dbfw08002793653d 4.1.12-103.9.4.el6uek.x86_64 #2 SMP Wed Nov 8 14:04:45 PST 2017 x86_64 x86_64 x86_64 GNU/Linux

Change enabled value in public-yum-ol6.repo file like below

[public_ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=$uek

[public_ol6_UEKR3_latest]
name=Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=$uekr3

[public_ol6_UEKR4]
name=Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/UEKR4/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=$uekr4

to

[public_ol6_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[public_ol6_UEKR3_latest]
name=Unbreakable Enterprise Kernel Release 3 for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/UEKR3/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

[public_ol6_UEKR4]
name=Latest Unbreakable Enterprise Kernel Release 4 for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL6/UEKR4/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=0

Now install rpm using Yum it should run without any issues.

[root@oracle yum.repos.d]# yum install telnet
Loaded plugins: security
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.x86_64 1:0.17-48.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package                            Arch                               Version                                      Repository                                     Size
==========================================================================================
Installing:
 telnet                             x86_64                             1:0.17-48.el6                                public_ol6_latest                              57 k

Transaction Summary
==========================================================================================
Install       1 Package(s)

Total download size: 57 k
Installed size: 109 k
Is this ok [y/N]: y
Downloading Packages:
telnet-0.17-48.el6.x86_64.rpm                                                                                                                    |  57 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 12 pre-existing rpmdb problem(s), 'yum check' output follows:
glib2-2.28.8-9.el6.x86_64 has missing requires of libfam.so.0()(64bit)
glib2-2.28.8-9.el6.x86_64 has missing requires of shared-mime-info
1:grub-0.97-99.0.1.el6.x86_64 has missing requires of system-logos
httpd-2.2.15-60.0.1.el6_9.6.x86_64 has missing requires of system-logos >= ('0', '7.92.1', '1')
initscripts-9.03.58-1.0.1.el6_9.2.x86_64 has missing requires of oracle-logos
less-436-13.el6.x86_64 has missing requires of groff
plymouth-0.8.3-29.0.1.el6.x86_64 has missing requires of system-logos
python-dmidecode-3.10.15-1.el6.x86_64 has missing requires of libxml2-python
python-dmidecode-3.10.15-1.el6.x86_64 has missing requires of libxml2mod.so()(64bit)
python-gudev-147.1-4.el6_0.1.x86_64 has missing requires of pygobject2
selinux-policy-3.7.19-307.0.1.el6_9.2.noarch has missing requires of m4
yum-utils-1.1.30-40.0.1.el6.noarch has missing requires of libxml2-python
  Installing : 1:telnet-0.17-48.el6.x86_64                                                                                                                          1/1
  Verifying  : 1:telnet-0.17-48.el6.x86_64                                                                                                                          1/1

Installed:
  telnet.x86_64 1:0.17-48.el6

Complete!


No comments:

Post a Comment