View previous topic :: View next topic |
Author |
Message |
jorgepeixoto Apprentice
Joined: 27 Apr 2006 Posts: 218 Location: São José dos Campos, São Paulo, Brasil
|
Posted: Fri Aug 01, 2008 3:39 am Post subject: How to migrate to Python 2.5 (SOLVED - nothing unexpected) |
|
|
Hi. As Python is critical, I would like to know if migrating to python 2.5 is as simple as
Code: |
sudo emerge -auv dev-lang/python
sudo emerge -av --prune dev-lang/python
revdep-rebuild -p
|
Last edited by jorgepeixoto on Sat Aug 02, 2008 9:36 pm; edited 1 time in total |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Aug 01, 2008 3:44 am Post subject: |
|
|
NO !!!!, with that you will crash your box
Code: |
# python-updater -i
# revdep-rebuild
# emerge --prune python
# revdep-rebuild
|
|
|
Back to top |
|
|
jorgepeixoto Apprentice
Joined: 27 Apr 2006 Posts: 218 Location: São José dos Campos, São Paulo, Brasil
|
Posted: Fri Aug 01, 2008 3:53 am Post subject: |
|
|
d2_racing wrote: | NO !!!!, with that you will crash your box
Code: |
# python-updater -i
# revdep-rebuild
# emerge --prune python
# revdep-rebuild
|
|
Thank you very much. So, to confirm, it is safe to issue this
Code: |
sudo emerge -auv dev-lang/python
sudo python-updater -pi
[perform manually the actions suggested by python-updater]
revdep-rebuild -p
[rebuild manually the packages revdep-rebuild complains about]
sudo emerge -av --prune dev-lang/python
revdep-rebuild -p
[rebuild manually the packages revdep-rebuild complains about]
|
Right? |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Aug 01, 2008 3:33 pm Post subject: |
|
|
Yes, by the way, why use sudo ? You are not using Ubuntu here |
|
Back to top |
|
|
jorgepeixoto Apprentice
Joined: 27 Apr 2006 Posts: 218 Location: São José dos Campos, São Paulo, Brasil
|
Posted: Fri Aug 01, 2008 7:10 pm Post subject: |
|
|
d2_racing wrote: | Yes, by the way, why use sudo ? You are not using Ubuntu here |
I read somewhere that sudo encourages a safer behavior. If you use just su, laziness makes you work as root all the time. People execute as root commands that don't need root permissions. |
|
Back to top |
|
|
Link31 Apprentice
Joined: 17 Apr 2006 Posts: 200 Location: France
|
Posted: Fri Aug 01, 2008 9:29 pm Post subject: |
|
|
jorgepeixoto wrote: | d2_racing wrote: | Yes, by the way, why use sudo ? You are not using Ubuntu here |
I read somewhere that sudo encourages a safer behavior. If you use just su, laziness makes you work as root all the time. People execute as root commands that don't need root permissions. |
Wrong.
I don't use sudo, and I'm not logged as root all the time. I'm pretty sure that most people on this forum who don't use sudo are not working everytime as root.
People using Gentoo know what they are doing. We don't need such "Ubuntu hacks" |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sat Aug 02, 2008 5:03 pm Post subject: |
|
|
In fact, when I want to use my root account, I use this :
And then I'm root :
|
|
Back to top |
|
|
jorgepeixoto Apprentice
Joined: 27 Apr 2006 Posts: 218 Location: São José dos Campos, São Paulo, Brasil
|
Posted: Sat Aug 02, 2008 9:35 pm Post subject: |
|
|
Well, I'm already used to sudo. In any case I think it is convenient, as it remembers my password for 5 minutes.
Back on topic, I upgraded python, removed the old version, and it seems that all is well.
Thank you. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Mon Aug 18, 2008 11:55 am Post subject: |
|
|
No problem |
|
Back to top |
|
|
tarpman Veteran
Joined: 04 Nov 2004 Posts: 1083 Location: Victoria, BC, Canada
|
Posted: Wed Aug 20, 2008 9:50 pm Post subject: |
|
|
jorgepeixoto wrote: | d2_racing wrote: | Yes, by the way, why use sudo ? You are not using Ubuntu here |
I read somewhere that sudo encourages a safer behavior. If you use just su, laziness makes you work as root all the time. People execute as root commands that don't need root permissions. |
It works the other way as well, though; if you use sudo you may well find yourself using it for things you don't actually have to, simply because you're used to doing it. _________________ Saving the world, one kilobyte at a time. |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Thu Aug 21, 2008 11:24 am Post subject: |
|
|
tarpman wrote: | It works the other way as well, though; if you use sudo you may well find yourself using it for things you don't actually have to, simply because you're used to doing it. |
In fact, but since the Gentoo handbook specifiy to use :
Then why use sudo |
|
Back to top |
|
|
Akkara Bodhisattva
Joined: 28 Mar 2006 Posts: 6702 Location: &akkara
|
Posted: Thu Aug 21, 2008 12:27 pm Post subject: |
|
|
If you have any packages that uses the scons configuration system, you might run into this small problem when doing the python-updater. So just look over that thread, the solution is easy, just a bit surprising the first time you see it. |
|
Back to top |
|
|
jorgepeixoto Apprentice
Joined: 27 Apr 2006 Posts: 218 Location: São José dos Campos, São Paulo, Brasil
|
Posted: Thu Aug 21, 2008 5:25 pm Post subject: |
|
|
Akkara wrote: | If you have any packages that uses the scons configuration system, you might run into this small problem when doing the python-updater. So just look over that thread, the solution is easy, just a bit surprising the first time you see it. |
I do not have scons in my system, but thank you for the tip |
|
Back to top |
|
|
|