LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   yum install - No package mysql-server available (https://www.linuxquestions.org/questions/red-hat-31/yum-install-no-package-mysql-server-available-886056/)

danndp 06-13-2011 09:54 AM

yum install - No package mysql-server available
 
Hello,

yum install mysql-devel mysql-server does not work propperly, it says:

Quote:

No package mysql-devel available
No package mysql-server available
Nothing to do
The most weird thing, is that i've completed a previous installation in other machine (same RH 5.5) last week and yum install mysql-devel, mysql-server worked perfectly

Thanks in advance for your help!

saivnoba 06-13-2011 10:23 AM

Did you check with the repositories? May be it is in some repo which is not enabled on your system. I'm on scientific linux 6 and on my system mysql-devel comes from sl-security repo (mysql-server is already installed).

Is your internet connection is functional?

danndp 06-13-2011 10:35 AM

Quote:

Originally Posted by saivnoba (Post 4384260)
Did you check with the repositories? May be it is in some repo which is not enabled on your system. I'm on scientific linux 6 and on my system mysql-devel comes from sl-security repo (mysql-server is already installed).

Is your internet connection is functional?


Yes, my internet connection is ok...the repo is the default from Red Hat installation, it's weird, why did it work on other installation and not in this one...

Quote:

cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - Source
baseurl=ftp://ftp.redhat.com/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Hope you can help

danndp 06-13-2011 10:44 AM

Quote:

Originally Posted by saivnoba (Post 4384260)
Did you check with the repositories? May be it is in some repo which is not enabled on your system. I'm on scientific linux 6 and on my system mysql-devel comes from sl-security repo (mysql-server is already installed).

Is your internet connection is functional?


Yes, my internet connection is ok...the repo is the default from Red Hat installation, it's weird, why did it work on other installation and not in this one...

Quote:

cat /etc/yum.repos.d/rhel-source.repo
[rhel-source]
name=Red Hat Enterprise Linux $releasever - Source
baseurl=ftp://ftp.redhat.com/redhat/linux/enterprise/$releasever/en/os/SRPMS/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
Hope you can help

MensaWater 06-13-2011 10:45 AM

You might want to login to Redhat Network (RHN) and verify both servers are registered and have the same subscriptions. RH doesn't let you install from their repositories with a registered subscription for the host.

When I run yum list mysql-devel mysql-server from one of my RHEL5 systems I see the packages are in the rhel-x86_64-server-5 repository.

I've noticed on occasion that due to high traffic on the repository servers yum will occasionally give you bogus information. Retrying later might have different results.

Also of course you can try clearing the cache with "yum clean all". Sometimes there are issues with the cache that prevent yum commands from running.

As a work around, if you've got cache set to save on the host where you already installed the packages you can get the RPMs from the /var/spool/cache/yum directory on that server and copy them to the other one then just run "rpm -ivh" against those RPMs on the target server to install using rpm. (You might have dependency issues however that require you to copy more packages.)

saivnoba 06-13-2011 10:57 AM

You have a seperate repo file by name rhel-source.repo? On my SL6 machine I only have sl.repo and sl-updates.repo.

Clearly on the rhel-source.repo file you quoted, it is not enabled (enable=0). But so is sl-source in my sl.repo file. So 'source' does not matter.

If you have just rhel.repo or rhel-updates.repo, confirm if they are enabled. On my system the following two are enabled.
Code:

[sl]                                           
name=Scientific Linux $releasever - $basearch   
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/os/
#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-base-6.txt     
enabled=1                                                                               
..

[sl-security]
name=Scientific Linux $releasever - $basearch - security updates
baseurl=http://ftp.scientificlinux.org/linux/scientific/$releasever/$basearch/updates/security/
#mirrorlist=http://ftp.scientificlinux.org/linux/scientific/mirrorlist/sl-security-6.txt
enabled=1
..

May be 'yum clean all' followed by 'yum update' will create a fresh cache?

danndp 06-13-2011 11:02 AM

Quote:

Originally Posted by MensaWater (Post 4384289)
You might want to login to Redhat Network (RHN) and verify both servers are registered and have the same subscriptions. RH doesn't let you install from their repositories with a registered subscription for the host.

When I run yum list mysql-devel mysql-server from one of my RHEL5 systems I see the packages are in the rhel-x86_64-server-5 repository.

I've noticed on occasion that due to high traffic on the repository servers yum will occasionally give you bogus information. Retrying later might have different results.

Also of course you can try clearing the cache with "yum clean all". Sometimes there are issues with the cache that prevent yum commands from running.

As a work around, if you've got cache set to save on the host where you already installed the packages you can get the RPMs from the /var/spool/cache/yum directory on that server and copy them to the other one then just run "rpm -ivh" against those RPMs on the target server to install using rpm. (You might have dependency issues however that require you to copy more packages.)

Interesting, solved like this:

1 - Logged into rhn.redhat.com
2 - On subscription section added the RHEL Desktop Workstation (v. 5 for 32-bit x86) to the Red Hat Enterprise Linux Desktop (v. 5 for 32-bit x86)

And then, yum update, and installed mysql-server and the other without any problem

Thanks!


All times are GMT -5. The time now is 04:00 AM.