Not able to install MySQL on CentOS 6.6? - linux

See the MySQL stautus on system.
[root#n yum.repos.d]# rpm -qa | grep mysql
mysql-libs-5.1.73-3.el6_5.x86_64
mysql-community-release-fc21-5.noarch
[root#n yum.repos.d]# yum remove mysql
Setting up Remove Process
No Match for argument: mysql
Package(s) mysql available, but not installed.
No Packages marked for removal
After that i tried to install MySQL server- It gives some error message and fail to install.
[root#n yum.repos.d]# rpm -ivh http://repo.mysql.com/mysql-community-release-el5-5.noarch.rpm
Retrieving http://repo.mysql.com/mysql-community-release-el5-5.noarch.rpm
Preparing... ########################################### [100%]
package mysql-community-release-fc21-5.noarch (which is newer than mysql-community-release-el5-5.noarch) is already installed
file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql from install of mysql-community-release-el5-5.noarch conflicts with file from package mysql-community-release-fc21-5.noarch
file /etc/yum.repos.d/mysql-community-source.repo from install of mysql-community-release-el5-5.noarch conflicts with file from package mysql-community-release-fc21-5.noarch
file /etc/yum.repos.d/mysql-community.repo from install of mysql-community-release-el5-5.noarch conflicts with file from package mysql-community-release-fc21-5.noarch
[root#n yum.repos.d]# dir
CentOS-Base.repo CentOS-Vault.repo
CentOS-Debuginfo.repo epel.repo
CentOS-fasttrack.repo epel-testing.repo
CentOS-Media.repo mysql-community-release-el6-5.noarch.rpm
I am not able to insall the MySQL. How can I solve this issue and install MySQL 5.6 in my System. I am using remote system.

You already have a package installed in your machine. You can use that one (which is a newer version than the one you are trying to install) or run:
rpm -e mysql-community-release-fc21-5.noarch
To remove it and then run the command you are trying to use.

Related

How to uninstall RPM without dependencies error in cent os?

I installed the openssl rpm some long days ago. After that i am unable to uninstall the rpm so that i deleted the /usr/bin/openssl folder manually.Though I deleted it manually, when i grep using this command rpm -qa openssl i can find the rpm.
But when i execute the openssl command in terminal it is showing bash: openssl: command not found...
When try to uninstall i am getting following error
[root#genius ~]# rpm -qa openssl
openssl-1.0.2k-8.el7.x86_64
[root#genius ~]# rpm -e openssl-1.0.2k-8.el7.x86_64
error: Failed dependencies:
/usr/bin/openssl is needed by (installed) authconfig-6.2.8-30.el7.x86_64
And also when i am tryiong to install the rpm it is showing that following output
[root#genius openssl]# rpm -ivh openssl-1.0.2k-8.el7.x86_64.rpm
Preparing... ################################# [100%]
package openssl-1:1.0.2k-8.el7.x86_64 is **already installed**
Finally,
I need the openssl package should be installed in my centOS 7 or else i need to remove the openssl package completely without any dependencies error.
You have a couple of options here:
1. Remove using yum, Note: this may remove the dependency such as authconfig
$ yum remove openssl
2. Remove using rpm cmdline, but you have to force remove it. This will not remove the depencies
$ rpm -e openssl-1.0.2k-8.el7.x86_64 --nodeps
3. or try a reinstall if you have CentOS-7 repo
$ yum reinstall openssl
If you want openssl in your system, I would try (3) first. If that doesn't work, try (2) and then do a yum install openssl. (3) and (1) are the options to use. (2) will cause the dependency package to stay in the system and the dependent package may malfunction.

Unable to install postgresql on oracle linux with yum

When i try to install the package it says package is already installed, But when i try to install then it says that no package is available.
Downloads $ sudo rpm -i pgdg-oraclelinux91-9.1-7.noarch.rpm
package pgdg-oraclelinux91-9.1-7.noarch is already installed
Downloads $ sudo yum -y install postgresql91 postgresql91-contrib postgresql91-devel postgresql91-libs postgresql91-plperl postgresql91-plpython postgresql91-pltcl postgresql91-docs postgresql91-server
Loaded plugins: langpacks, ulninfo
Repository google-chrome is listed more than once in the configuration
No package postgresql91 available.
No package postgresql91-contrib available.
No package postgresql91-devel available.
No package postgresql91-libs available.
No package postgresql91-plperl available.
No package postgresql91-plpython available.
No package postgresql91-pltcl available.
No package postgresql91-docs available.
No package postgresql91-server available.
Error: Nothing to do
Thanks in Advance.
Use yum list postgresql91\* to find this package first and then use full name to install a package
I have facing same issue when downloading postgres in linux.
As i have followed some step from surfing some site.
I have download repository RPM first and its downloaded successfully.
then after in next step i have run below command
yum install postgresql10-server postgresql10
then getting below error
No package postgresql10-server available.
No package postgresql10 available.
in resolution of that i have run yum list command. and you can find out list of available software where postgres also mentioned so used specific name of postgres in command like
sudo yum install postgresql-server.x86_64
And it is working fine.

RPM installation on redhat 6.3 failed

I am trying to install unixODBC-2.2.14-11.el6.x86_64.rpm on redhat 6.3. It gives me the following output:
[root#localhost khan]# yum install unixODBC-2.2.14-11.el6.x86_64.rpm
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
Unable to read consumer identity
Repository InstallMedia is listed more than once in the configuration
Setting up Install Process
Examining unixODBC-2.2.14-11.el6.x86_64.rpm: unixODBC-2.2.14-11.el6.x86_64
unixODBC-2.2.14-11.el6.x86_64.rpm: does not update installed package.
Error: Nothing to do
But when I try to query it by #rpm -q unixODBC-2.2.14-11.el6.x86_64.rpm,
it gives the output as:
package unixODBC-2.2.14-11.el6.x86_64.rpm is not installed
You are misusing the rpm command. With the -q option, rpm receives a package name, not a file name. Drop the .rpm from the end, and you should be OK:
$ rpm -q unixODBC-2.2.14-11.el6.x86_64

Package conflict during rpm install of node

I am trying to do an rpm install of Node, but it is failing with the following error:
[xxxx#xxxxxxxx xxxx]# rpm -ivh Node-v0.10.33-RHEL.x86_64.rpm
Preparing... ################################# [100%]
file /usr/bin from install of Node-v0.10.33-RHEL.x86_64 conflicts with file from package filesystem-3.2-20.el7.x86_64
file /usr/lib from install of Node-v0.10.33-RHEL.x86_64 conflicts with file from package filesystem-3.2-20.el7.x86_64
I have been looking around the internet for the past two days but all the errors similar to mine (conflict with filesystem package) had been due to issues with the rpm package. In my case, I can rule that out as I have previously used the same rpm for node installation on other VMs successfully.
My user has root privileges and my OS is CentOS Linux release 7.2.1511 (Core)

Why couldn't the latest version of rsync be installed on CentOS 7.2?

I am using CentOS 7.2.
I would like to install the latest version of rsync - rsync-3.1.2,
rsync-3.0.9 is on system, installed when installing mariadb with yum,
# rpm -qa |grep rsync
rsync-3.0.9-17.el7.x86_64
removing rsync-3.0.9 first,
# yum remove rsync
rsync and mariadb were removed together,
then,
installing rsync-3.1.2 from source code,
# wget https://download.samba.org/pub/rsync/src/rsync-3.1.2.tar.gz
# tar -zxvf rsync-3.1.2.tar.gz
# cd rsync-3.1.2
# ./configure
# make
# make install
then,
installing mariadb with yum again,
but rsync-3.0.9 will still be installed.
How can I solve the problem?
You can install rsync 3.1.2 from the Fedora 24 .rpm package:
wget http://dl.fedoraproject.org/pub/fedora/linux/releases/24/Everything/x86_64/os/Packages/r/rsync-3.1.2-2.fc24.x86_64.rpm
rpm -Uvh rsync-3.1.2-2.fc24.x86_64.rpm
(but that question doesn't really belong to stackoverflow)
You can install rsync 3.1.2 from the gf-plus repo. Just follow the steps below:
Install the gf-release package.
sudo rpm -Uvh http://mirror.ghettoforge.org/distributions/gf/el/7/gf/x86_64/gf-release-7-10.gf.el7.noarch.rpm
Upgrade rsync package from the gf-plus repo.
sudo yum install -y --enablerepo=gf-plus rsync
Check rsync version.
hash -r; rsync --version | awk 'NR==1 {print $3}'
If it prints 3.1.2, rsync is upgraded.
By default, only the gf repo is enabled, which claims that it "won't overwrite core distro packages". You can disable it:
sudo yum-config-manager --disable gf
(For command not found error, run sudo yum install -y yum-utils and try again.)
Or simply remove all the gf* repos by removing the gf-release package:
sudo yum remove -y gf-release
You either need to install all of your software using packages, or install all of your software from source. Trying to mix and match is going to lead to exactly the sort of problem you are experiencing here: the mariadb package has a dependency on rsync, but the package manager doesn't know anything about the files you have installed from source.
The correct way to solve this problem is to build your own rsync package that can then be installed with yum. You can start with the source package for your distribution and then modify it for 3.1.2. You may be able to utilize a more recent package (e.g., from Fedora) and rebuild it for your system.
You can find the source RPM for rsync-3.0.9 here, and there is some documentation that will hopefully help you get started here.

Resources