LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 06-13-2011, 09:54 AM   #1
danndp
Member
 
Registered: Nov 2010
Posts: 51

Rep: Reputation: 2
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!
 
Old 06-13-2011, 10:23 AM   #2
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
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?
 
Old 06-13-2011, 10:35 AM   #3
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by saivnoba View Post
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
 
Old 06-13-2011, 10:44 AM   #4
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by saivnoba View Post
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
 
Old 06-13-2011, 10:45 AM   #5
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 5,950
Blog Entries: 5

Rep: Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755Reputation: 755
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.)
 
1 members found this post helpful.
Old 06-13-2011, 10:57 AM   #6
saivnoba
Member
 
Registered: Aug 2010
Distribution: Debian Sid, openSUSE, Gentoo, Slackware64
Posts: 68

Rep: Reputation: 2
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?

Last edited by saivnoba; 06-13-2011 at 10:59 AM.
 
Old 06-13-2011, 11:02 AM   #7
danndp
Member
 
Registered: Nov 2010
Posts: 51

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by MensaWater View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
yum package install lensem Linux - Server 5 11-14-2008 03:29 AM
Problem Starting MySQL on Fresh Fedora 8 Install w/ Yum'd MySQL blong4life Linux - Server 2 07-04-2008 07:44 PM
[SOLVED] Use yum to install package. brave heart Red Hat 9 09-06-2007 02:51 AM


All times are GMT -5. The time now is 08:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration