LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 01-13-2008, 08:03 PM   #1
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
YUM - disable certain packages from updating


I manually downloaded and installed the new OpenOffice 2.3.1. The version originally installed is 2.0. Every time I run the OpenOffice 2.3.1 setup, it installs fine, but then YUM/PUP will pop up telling me there is an "update". It wants to revert back to the old OpenOffice 2.0. How do I tell YUM to get rid of the OpenOffice 2.0 in its database? I have tried uninstalling 2.0 from YUM, installing the new OpenOffice 2.3.1, but the "update" comes right back wanting to go back to OpenOffice 2.0.

Last edited by Micro420; 01-13-2008 at 08:04 PM.
 
Old 01-13-2008, 08:20 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,476

Rep: Reputation: 156Reputation: 156
Quote:
Originally Posted by Micro420 View Post
I manually downloaded and installed the new OpenOffice 2.3.1. The version originally installed is 2.0. Every time I run the OpenOffice 2.3.1 setup, it installs fine, but then YUM/PUP will pop up telling me there is an "update". It wants to revert back to the old OpenOffice 2.0. How do I tell YUM to get rid of the OpenOffice 2.0 in its database? I have tried uninstalling 2.0 from YUM, installing the new OpenOffice 2.3.1, but the "update" comes right back wanting to go back to OpenOffice 2.0.
What install method did you use for OpenOffice 2.3.1? I have had similar problems in the past when I installed packages outside of the package manager system (yum in Fedora). The best solution that I ever came up with was to create a rpm package and install it using the rpm command.

In other words if you are compiling OpenOffice 2.3.1 from source then use checkinstall to create a rpm package. Then use yum or the rpm command to uninstall Openoffice 2.0. Then install the OpenOffice 2.3.1 rpm package using the rpm command or you might be able to talk yum into installing a local rpm package. Hopefully this will set up things in the rpm data base to where yum understands that 2.3.1 is the latest version.

If Fedora does not have checkinstall available you can get it here:

http://www.asic-linux.com.mx/~izto/checkinstall/

--------------------------
Steve Stites
 
Old 01-13-2008, 08:21 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
When I downloaded the OpenOffice 2.3.1 tarball, it came with a setup file which linked to an RPM folder.

problem solved! I uninstalled the packages and instead used the rpm -ivh command to install the RPM's and now YUM doesn't bug me anymore about "updates". Previously I was doing rpm -Uvh. Guess it makes a difference.

Last edited by Micro420; 01-13-2008 at 08:31 PM.
 
Old 01-13-2008, 09:28 PM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
I know you already resolved your problem, but for anyone else who is interested, to exclude packages from being updated, you can edit /etc/yum.conf and add an exclude like e.g.
Code:
exclude=openoffice*

Last edited by reddazz; 01-13-2008 at 09:51 PM. Reason: typo
 
Old 01-13-2008, 09:37 PM   #5
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Original Poster
Rep: Reputation: 45
Good to know! Thanks
 
Old 03-19-2010, 11:17 AM   #6
yngmike
LQ Newbie
 
Registered: Sep 2007
Posts: 10

Rep: Reputation: 2
note

reddazz.

Thanks for the info. This post comes up right in the top of google

One note for others who might not know.

Exlusions are defined by section of the repo entry in your .repo file (separated by brackets).

So yo will need to exlude per section. Don't just tag this at the end of the file. because it will only apply to the last repo in the list.

-Mike
 
  


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
Installing, Updating packages w/Yum mickeyboa Fedora 4 07-05-2007 03:27 PM
yum is not updating induz Fedora 3 03-28-2006 02:31 PM
yum updating problem bonus_uk Linux - Software 3 10-01-2005 10:06 PM
yum hangs while updating ashwin_cse Fedora 2 03-13-2005 10:24 AM
Updating packages from redhat - insatlling *.hdr packages jomy Linux - Networking 1 01-18-2005 08:36 AM


All times are GMT -5. The time now is 05:58 PM.

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