Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to migrate to Python 2.5 (SOLVED - nothing unexpected)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jorgepeixoto
Apprentice
Apprentice


Joined: 27 Apr 2006
Posts: 218
Location: São José dos Campos, São Paulo, Brasil

PostPosted: Fri Aug 01, 2008 3:39 am    Post subject: How to migrate to Python 2.5 (SOLVED - nothing unexpected) Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Aug 01, 2008 3:44 am    Post subject: Reply with quote

NO !!!!, with that you will crash your box :P

Code:

# python-updater -i
# revdep-rebuild
# emerge --prune python
# revdep-rebuild
Back to top
View user's profile Send private message
jorgepeixoto
Apprentice
Apprentice


Joined: 27 Apr 2006
Posts: 218
Location: São José dos Campos, São Paulo, Brasil

PostPosted: Fri Aug 01, 2008 3:53 am    Post subject: Reply with quote

d2_racing wrote:
NO !!!!, with that you will crash your box :P

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Aug 01, 2008 3:33 pm    Post subject: Reply with quote

Yes, by the way, why use sudo ? You are not using Ubuntu here :)
Back to top
View user's profile Send private message
jorgepeixoto
Apprentice
Apprentice


Joined: 27 Apr 2006
Posts: 218
Location: São José dos Campos, São Paulo, Brasil

PostPosted: Fri Aug 01, 2008 7:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Link31
Apprentice
Apprentice


Joined: 17 Apr 2006
Posts: 200
Location: France

PostPosted: Fri Aug 01, 2008 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sat Aug 02, 2008 5:03 pm    Post subject: Reply with quote

In fact, when I want to use my root account, I use this :

Code:

$ su -


And then I'm root :

Code:

#
Back to top
View user's profile Send private message
jorgepeixoto
Apprentice
Apprentice


Joined: 27 Apr 2006
Posts: 218
Location: São José dos Campos, São Paulo, Brasil

PostPosted: Sat Aug 02, 2008 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Mon Aug 18, 2008 11:55 am    Post subject: Reply with quote

No problem :P
Back to top
View user's profile Send private message
tarpman
Veteran
Veteran


Joined: 04 Nov 2004
Posts: 1083
Location: Victoria, BC, Canada

PostPosted: Wed Aug 20, 2008 9:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Thu Aug 21, 2008 11:24 am    Post subject: Reply with quote

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 :

Code:

$ su -


Then why use sudo :)
Back to top
View user's profile Send private message
Akkara
Bodhisattva
Bodhisattva


Joined: 28 Mar 2006
Posts: 6702
Location: &akkara

PostPosted: Thu Aug 21, 2008 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
jorgepeixoto
Apprentice
Apprentice


Joined: 27 Apr 2006
Posts: 218
Location: São José dos Campos, São Paulo, Brasil

PostPosted: Thu Aug 21, 2008 5:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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