LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2014, 12:35 AM   #1
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Rep: Reputation: 33
[yum] How to update a package to a certain version?


The installed version of package for example is the
Code:
Installed Packages
hibernate4-infinispan-eap6.noarch           4.2.7-8.SP4_redhat_1.1.ep6.el5             installed
Available Packages
hibernate4-infinispan-eap6.noarch           4.2.7-3.3.SP1_redhat_3.ep6.el5             proactiv-jbappplatform-6-x86_64-server-5-rpm-20140925
hibernate4-infinispan-eap6.noarch           4.2.7-8.SP4_redhat_1.1.ep6.el5             proactiv-jbappplatform-6-x86_64-server-5-rpm-20140925
hibernate4-infinispan-eap6.noarch           4.2.7-9.SP5_redhat_1.1.ep6.el5             proactiv-jbappplatform-6-x86_64-server-5-rpm-20140925
hibernate4-infinispan-eap6.noarch           4.2.14-2.SP1_redhat_1.1.ep6.el5            proactiv-jbappplatform-6-x86_64-server-5-rpm-20140925
hibernate4-infinispan-eap6.noarch           4.2.14-8.SP3_redhat_1.1.ep6.el5            proactiv-jbappplatform-6-x86_64-server-5-rpm-20140925
[root@s001c1001 ~]#
But I just want to update this package to version 'hibernate4-infinispan-eap6.noarch 4.2.7-9.SP5_redhat_1.1.ep6.el5'.

How can I do that?

I've tried using following commands but fails.
Code:
yum update hibernate4-infinispan-eap6-4.2.7-9.SP5_redhat_1.1.ep6.el5
Code:
yum install hibernate4-infinispan-eap6-4.2.7-9.SP5_redhat_1.1.ep6.el5
Any idea?
 
Old 12-02-2014, 01:26 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Always is recommended to upgrade altest available version. Not sure why you interested to install some other version. Anyway if you want to do that download the particular rpm and install it manually.
 
Old 12-02-2014, 04:15 AM   #3
thomas2004ch
Member
 
Registered: Aug 2009
Posts: 539

Original Poster
Rep: Reputation: 33
Thanks for the reply.

I've found out the solution as follow:

yum update-to my-package-certain-version
 
  


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
[SOLVED] How do I remove a specific version of a package with yum? rokyo Linux - Software 3 09-25-2015 09:15 AM
yum - install particular version of a package? neiljt Linux - Software 8 06-23-2014 04:41 PM
Package update using YUM geekslinux Red Hat 2 09-13-2013 01:36 AM
yum the stubborn yum; not allowing to update any package lazer00 Linux - Software 1 03-24-2011 07:41 PM
How to install specific version of a package using yum? yuriy Linux - Newbie 1 09-26-2008 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 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
Open Source Consulting | Domain Registration