LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-18-2010, 06:45 AM   #1
phatrik
LQ Newbie
 
Registered: Sep 2010
Location: Toronto, ON
Distribution: CentOS
Posts: 18

Rep: Reputation: 0
Package management using Yum


I'm looking to upgrade a few packages but noticed that the version available through Yum isn't necessarily the most up-to-date version as per the package website. One such example is Mysql:



[root@localhost ~]# yum info mysql-server
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Available Packages
Name : mysql-server
Arch : i386
Version: 5.0.77
Release: 4.el5_5.3



If you look on the mysql website, the latest community edition is 5.1.50. I suspect the answer might be to do a distribution upgrade via media (i.e.: burn a CD) however was wondering if there's any ways around that?


Thanks
 
Old 09-18-2010, 07:28 AM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
if you can't use yum update to update your software then your distro hasn't released a tested version of it. Distro run test on all their software to make sure it works with out flaw so that causes it to be released by your distro late. So it would be recommend to wait on your distro how ever. If you have the knowledge with compiling you could download the tar ball and build it into a rpm package and install it or just use the ./configure, make, make install method.
 
Old 09-18-2010, 11:53 AM   #3
netmar
LQ Newbie
 
Registered: Jul 2004
Location: Durham, NC
Distribution: Ubuntu 10.04 (I'd rather use Gentoo)
Posts: 23

Rep: Reputation: 3
In your particular case, the distro (CentOS I'm guessing) doesn't yet include mysql 5.1, and probably won't any time in the near future.

You can get around this by using a third-party repository for the 5.1 packages, but only if you actually need something that 5.1 provides. In other words, if you just want to upgrade to "have the latest version," then don't bother. The CentOS packages are continually updated and patched, so any security flaws or known bugs that have been corrected in 5.1 have likely also been corrected in the CentOS version of 5.0. The only advantage you would gain by installing 5.1 would be whatever new features were introduced.

If you do need that functionality, then I'd recommend a responsible third-party repo like IUS, which is run by RackSpace, and has lots of experienced maintainers and tons of test machines. There are also pretty good instructions on how to use the repo, and, better yet, on how to replace the stock packages without overwriting them. That way, if things don't work out, you just replace the new packages with the old ones. All those instructions are available at this page, and the packages are available here.
 
Old 09-18-2010, 03:04 PM   #4
tommylovell
Member
 
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 372

Rep: Reputation: 101Reputation: 101
If you've already downloaded the rpm, you can check to see what it needs with
'rpm -q --requires -p <your.rpm.file>'

Here's what my system, an Athlon (x86_64), needs as prerequisites.
Code:
[root@athlonz Download]# rpm -q --requires -p MySQL-client-community-5.1.50-1.rhel5.x86_64.rpm 
/bin/sh  
/usr/bin/perl  
libc.so.6()(64bit)  
libc.so.6(GLIBC_2.2.5)(64bit)  
libc.so.6(GLIBC_2.3)(64bit)  
libc.so.6(GLIBC_2.3.4)(64bit)  
libc.so.6(GLIBC_2.4)(64bit)  
libcrypt.so.1()(64bit)  
libm.so.6()(64bit)  
libm.so.6(GLIBC_2.2.5)(64bit)  
libncursesw.so.5()(64bit)  
libnsl.so.1()(64bit)  
libpthread.so.0()(64bit)  
libpthread.so.0(GLIBC_2.2.5)(64bit)  
libpthread.so.0(GLIBC_2.3.2)(64bit)  
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rtld(GNU_HASH)  
[root@athlonz Download]#
You can also "test" using RPM to see what you are missing and if the rpm will install.
Code:
[root@athlonz Download]# rpm --test -Uvf MySQL-client-community-5.1.50-1.rhel5.x86_64.rpm 
Preparing packages for installation...
        file /usr/bin/mysql from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/bin/mysql_waitpid from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/bin/mysqladmin from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/bin/mysqlbinlog from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/bin/mysqlcheck from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/bin/mysqldump from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/bin/mysqlimport from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/bin/mysqlshow from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysql.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysql_find_rows.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysql_waitpid.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysqlaccess.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysqladmin.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysqldump.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysqlshow.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/msql2mysql.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-server-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysqlbinlog.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-server-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysqlcheck.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-server-5.0.88-1.fc10.x86_64
        file /usr/share/man/man1/mysqlimport.1.gz from install of MySQL-client-community-5.1.50-1.rhel5.x86_64 conflicts with file from package mysql-server-5.0.88-1.fc10.x86_64
[root@athlonz Download]#
Clearly, the installed fc10 supplied package does not get along with the downloaded RPM. I'd need to remove the old one first.

(With --force it would go on. But --force is not a desirable way to go and I'd only use it as a very last resort.)

I'm much more comfortable with official packages (i.e. those vetted by and available from the distro's maintainers). So, I'm with jmc1987 there. I'd wait for your distro to catch up. But I'm somehwhat paranoid and am clearly not in the "no guts, no glory" camp.

Last edited by tommylovell; 09-19-2010 at 01:27 AM.
 
Old 09-19-2010, 12:51 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
The first half of netmar's post is worth thinking about as well. The RHEL/Centos (& Fedora) systems do have bugfixes backported to earlier versions, so unless there's brand new functionality you can't live without (unlikely), I'd stick with the official releases.
See the 'Pkg filename & label' section http://en.wikipedia.org/wiki/RPM_Pac...name_and_label
To truly know what has been fixed you'd have to check the Release notes for the pkg releases.

There's a good chapter on rpm http://www.linuxtopia.org/online_boo...l5_ch-rpm.html
 
  


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
LXer: Learn Linux, 101: RPM and YUM package management LXer Syndicated Linux News 0 05-12-2010 01:00 PM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 02:51 AM
LXer: Supercharging package management with yum plugins and utilities LXer Syndicated Linux News 0 11-19-2007 12:50 PM
LXer: Simple Package management with Synaptic Package Manager LXer Syndicated Linux News 0 12-05-2006 07:33 PM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration