View previous topic :: View next topic |
Author |
Message |
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jun 23, 2002 5:11 pm Post subject: emerge clarification question |
|
|
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. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Sun Jun 23, 2002 8:53 pm Post subject: |
|
|
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 |
|
|
JefP@@ Apprentice
Joined: 09 May 2002 Posts: 179 Location: Belgium
|
Posted: Sun Jun 23, 2002 9:00 pm Post subject: |
|
|
Yep, it's prob a bug |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Jun 23, 2002 11:49 pm Post subject: |
|
|
Just double checking that I understood it correctly. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
AutoBot l33t
Joined: 22 Apr 2002 Posts: 968 Location: Usually Out
|
Posted: Mon Jun 24, 2002 12:01 am Post subject: |
|
|
Actually the following is invaluable, but be careful as it *can* unmerge something you want to keep:
_________________ This message self destructed a long time ago. |
|
Back to top |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Mon Jun 24, 2002 3:37 am Post subject: |
|
|
How can an emerge with a -p flag actually unmerge something?? That's a serious problem. _________________ if i never try anything, i never learn anything..
if i never take a risk, i stay where i am.. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Mon Jun 24, 2002 3:38 am Post subject: |
|
|
I think the imiplication is that -p clean will not be 100% accurate. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
klieber Bodhisattva
Joined: 17 Apr 2002 Posts: 3657 Location: San Francisco, CA
|
Posted: Mon Jun 24, 2002 11:15 am Post subject: |
|
|
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 |
|
|
masseya Bodhisattva
Joined: 17 Apr 2002 Posts: 2602 Location: Baltimore, MD
|
Posted: Mon Jun 24, 2002 2:08 pm Post subject: |
|
|
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 |
|
|
|