LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-19-2003, 11:46 AM   #1
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
gentoo emerge...advice, please


I use Gimp as the example, to show what is the "problem". I have old gimp 1.2.4 installed, and one day I decided to update it.

emerge -p gimp

told me that 1.2.5 was available. I almost started getting it, but then I happened to see www.gimp.org - the current version was 1.3.21! Oh man! I just did "emerge sync", so why do I have this old version as the "newest"?

Then, I checked what's going on at my harddisk:

locate gimp | grep ebuild

gave me the information of this file:

/usr/portage/media-gfx/gimp/gimp-1.3.21.ebuild

All right, there it was. An ebuild for the _real_ newest version. But what the heck did those other ebuilds do there?

So, what I'm wondering is: how to tell portage that I do have newer ebuild ready for some package than the one it shows? How to get rid of those old ones, or how at least to let them be old and not show up while updating packages?

Is there a way to clean the older ebuilds away or "hide" them? I thought that "emerge sync" would automatically remove old ebuilds and replace them with the new ones, but it seems like I was wrong...I hope the only way to, as in the example, get the newer version is not to emerge /usr/potage/xxx-xxx/yyy/zzz-a.b.c.ebuild which won't check out dependencies (I guess?).....

-> the thing I'd like to know is how and where is the "newest" package defined..? Is there a file which contains the information of the latest packages?

Last edited by b0uncer; 10-19-2003 at 12:23 PM.
 
Old 10-19-2003, 12:43 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
What happens is.. the newest packages sometimes are masked.
They have a ~ in front of x86, you'll see when you look at an ebuild file.

cd to /usr/portage/media-gfx
And emerge gimp-1.3.21.ebuild
That will do it
Ohh.. and emerge world will downgrade it next time you update
Make sure to use the --update flags
 
Old 10-19-2003, 07:56 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
emerge sync will remove old versions when they are removed from the portage tree. but there are many mnay good reasons for keeping a couple of different versions available. a nasty bug might appear in a new version and so forth. they old files will be removed as tiem goes on, don't worry about that.

and if you do like "emerge world"ing, i normally do "emerge -Up world" the capital U rather than u is to upgrade only... so anything marked unstable (e.g. ~x86) will not be downgraded.
 
  


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
gentoo + emerge kurrupt Linux - General 5 06-02-2005 04:56 PM
pkg-config error with emerge -aD gnome-python on Gentoo 2.6.9-gentoo-r6 ghrellin Linux - Software 2 12-22-2004 07:37 PM
Please help. Gentoo: Emerge gentoo-dev-sources fails sendas4 Linux - Newbie 3 07-19-2004 12:44 PM
gentoo emerge Treat84 Linux - Networking 1 08-22-2003 12:16 PM
gentoo emerge elektrohirn Linux - Distributions 2 06-02-2003 04:39 PM


All times are GMT -5. The time now is 11:05 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