Can't Install Using Yum in Rhel 7.1

RH 7.1 Linux, yum install issue

To resolve your subscription related issue please follow this.

https://access.redhat.com/solutions/253273

And regarding your pdksh installation, Pdksh was an open source version that had many of the ksh'88 shell features, which was only available for commercial Linux system and licensed by AT&T. Starting with RHEL 6, pdksh has been deprecated. If you need the Korn shell, use the standard public domain ksh (ksh'93)

yum install ksh

Hope this helps

centos yum fails installing anything or updating system

BEFORE TRYING ANY OF THIS, HAVE A BACKUP OF YOUR MACHINE, YOU COULD DAMAGE YOUR OS MORE/COMPLETELY

It seems that your yum variable $releasever is somehow corrupt,
it usually is caused by missing centos-release package on the machine for some obscure reasons.

You can check if you have the package by:

    rpm -qi centos-release

You will probably see:

    "package centos-release is not installed"

First find out the exact centos version that you have by executing as root:

    cat /etc/redhat-release

You will see something like this:

    CentOS Linux release 7.3.1611 (Core)

You can fetch the centos-release package from repo by:

    wget http://vault.centos.org/centos/7.3.1611/updates/x86_64/Packages/centos-release-7-3.1611.el7.centos.2.5.x86_64.rpm

Now run reinstall centos-release package via rpm:

    sudo rpm -Uvh --replacepkgs centos-release-7-3.1611.el7.centos.2.5.x86_64.rpm

As next you can try to install something with yum and you might get:

    [root@dcos-master3 ikerlan]# sudo yum install wget
error: db5 error(-30969) from dbenv->open: BDB0091 DB_VERSION_MISMATCH: Database environment version mismatch
error: cannot open Packages index using db5 - (-30969)
error: cannot open Packages database in /var/lib/rpm
CRITICAL:yum.main:

Error: rpmdb open failed

Now you can try to reboot the machine or try to use the following command to rebuild the rpm db:

    rpm --rebuilddb

Can't access third party repo using yum in Azure RHEL node

Per my experience, i think the issue may be caused by the VM network. But, this has not problems when you run yum update. So i suggest that you can run ping www.microsoft.com in the VM terminal to inspect whether your VM can connect to extranet.

For your first question, we can use an alternative method to install oracle JDK on RHEL.

1.You could download the Oracle JDK(.tar.gz) from Oracle official website just as below.
http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

2.You could upload JDK package which you have downloaded to your Azure VM directory by ftp tools like FileZilla.

description image

3.You could use SecureCRT to connect to Azure VM.

description image

4.
Install java with alternatives.

     #cd /home/johnny
#tar -zxf jdk-7u79-linux-x64.tar.gz -C /opt/
#cd /opt/jdk1.7.0_79/
#alternatives --install /usr/bin/java java /opt/jdk1.7.0_79/bin/java 2
#alternatives --config java
the output may be below:

description image.

you could input 1 to continue.

5.Now, you may also require to set up javac and jar commands path using alternative commands.

     #alternatives --install /usr/bin/jar jar /opt/jdk1.7.0_79/bin/jar 2
#alternatives --install /usr/bin/javac javac /opt/jdk1.7.0_79/bin/javac 2
#alternatives --set jar /opt/jdk1.7.0_79/bin/jar
#alternatives --set javac /opt/jdk1.7.0_79/bin/javac

6. Check installed java version.

     #java -version

description image

7.Configuring environment variables.

      Setup JAVA HOME variable:
#export JAVA_HOME= /opt/jdk1.7.0_79
Setup JRE HOME variable:
#export JRE_HOME=/opt/jdk1.7.0_79/jre
Setup PATH variable:
#export PATH=$PATH:/opt/jdk1.7.0_79/bin:/opt/jdk1.7.0_79/jre/bin

There is another method to config environment variables.
Modify the config file: /etc/profile. In this method, anyone who has logged in can use java.

description image

8.The refference:

http://tecadmin.net/steps-to-install-java-on-centos-5-6-or-rhel-5-6/#

For your second question, you can ask some problems about azure network config.

Hope it helps. Any concerns, please feel free to let me know.



Related Topics



Leave a reply



Submit