Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge clarification question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16114
Location: Colorado

PostPosted: Sun Jun 23, 2002 5:11 pm    Post subject: emerge clarification question Reply with quote

I'm pretty sure I've read somewhere that the proper way to emerge something is to emerge,
then unmerge the older version. Is this really correct? I emerged a newer version of Gimp, then
unmerged the older version. However, the unmerge removed the icon from my Gnome menu.
Not a major problem, just checking if that is what it should do. Is that normal behavior, or should
some ebuild instructions tell it not to if a version is still installed.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Raleigh, NC

PostPosted: Sun Jun 23, 2002 8:53 pm    Post subject: Reply with quote

You are right about the method of emerging a new package and unemerging the old one. It was in the portage users guide. Here's what it says:
Quote:
3.Upgrading packages

The standard way to upgrade packages under Gentoo Linux is to merge the new package, and then unmerge the old package. This is safe (and fun!) to do. First, merge the new package as per the above instructions. Then, uninstall the old package by typing something like:

Code listing 8

# emerge unmerge =net-irc/xchat-1.0.0-r1

Portage uses what is called a "safe" unmerge; it's only going to unlink original files. If a file has been overwritten or modified in some way, it will be left on the filesystem (presumably, you've installed a newer version of the package). So, if you unmerge an old version of xchat after merging a newer version, the xchat executable will not be deleted off your filesystem, since it has a newer timestamp and different md5sum. Safe unmerges are really great because they ensure that some version of the application is available at all times. If you had to unmerge first, then xchat wouldn't be available for a few minutes while the new version was being downloaded, compiled, installed and merged.

So it sounds like that could be a bug in the ebuild. It shouldn't remove the icon. :?
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
JefP@@
Apprentice
Apprentice


Joined: 09 May 2002
Posts: 179
Location: Belgium

PostPosted: Sun Jun 23, 2002 9:00 pm    Post subject: Reply with quote

Yep, it's prob a bug
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16114
Location: Colorado

PostPosted: Sun Jun 23, 2002 11:49 pm    Post subject: Reply with quote

Just double checking that I understood it correctly.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
AutoBot
l33t
l33t


Joined: 22 Apr 2002
Posts: 968
Location: Usually Out

PostPosted: Mon Jun 24, 2002 12:01 am    Post subject: Reply with quote

Actually the following is invaluable, but be careful as it *can* unmerge something you want to keep:

Code:

emerge -p clean

_________________
This message self destructed a long time ago.
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Raleigh, NC

PostPosted: Mon Jun 24, 2002 3:37 am    Post subject: Reply with quote

How can an emerge with a -p flag actually unmerge something?? That's a serious problem. :cry: :!:
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16114
Location: Colorado

PostPosted: Mon Jun 24, 2002 3:38 am    Post subject: Reply with quote

I think the imiplication is that -p clean will not be 100% accurate.
_________________
lolgov. 'cause where we're going, you don't have civil liberties.

In Loving Memory
1787 - 2008
Back to top
View user's profile Send private message
klieber
Administrator
Administrator


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Mon Jun 24, 2002 11:15 am    Post subject: Reply with quote

Tristam29 wrote:
How can an emerge with a -p flag actually unmerge something?


It doesn't. Autobot was merely saying that 'clean' can sometimes unmerge programs that you don't want it to, such as older versions of libraaries that other programs depend upon.

Unfortunately, the emerge man page is woefully out of date (bug report already been filed), so it's difficult to find this information out. However, 'clean' is supposed to work better than 'prune'. Prune is the sledgehammer approach and should be used sparingly.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Raleigh, NC

PostPosted: Mon Jun 24, 2002 2:08 pm    Post subject: Reply with quote

Ok, thanks for the clarification. I was a little scared for a bit there. I'll do some 'cleaning' when I get home. :)
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum