Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
downgrade packs?
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
Paradoxx
Apprentice
Apprentice


Joined: 13 Jan 2003
Posts: 197
Location: Sweden

PostPosted: Fri Jan 09, 2004 3:31 pm    Post subject: downgrade packs? Reply with quote

im traing to upgrade my gentoo whit emerge worl but it wanto downdrade programs i haw installd becus it in not stabel how do i setup so emerge ignor the packs i gount wanto downgrade?


bash-2.05b# emerge -p system

These are the packages that I would merge, in order:

Calculating system dependencies ...done!
[ebuild U ] sys-apps/portage-2.0.49-r21 [2.0.49-r20]
*** Portage will stop merging at this point and reload itself,
recalculate dependencies, and complete the merge.
You may avoid the remerging of packages by updating portage on its own.

[ebuild U ] sys-apps/module-init-tools-0.9.15_pre4 [0.9.12-r1]
[ebuild U ] sys-apps/groff-1.18.1-r4 [1.18.1-r3]
[ebuild UD] sys-devel/autoconf-2.57-r1 [2.58]
[ebuild UD] sys-devel/automake-1.7.5-r2 [1.7.8]
[ebuild UD] sys-devel/m4-1.4 [1.4-r1]
_________________
//Jag är dyslectiker

//pless dount complain im dyslectic


//i whas born in hell im going to hell
Back to top
View user's profile Send private message
Tii
l33t
l33t


Joined: 02 Jan 2004
Posts: 733

PostPosted: Fri Jan 09, 2004 3:38 pm    Post subject: Reply with quote

I always do emerge -uUDpv world just to be on the safe side. The U I think is the most important.
Back to top
View user's profile Send private message
andrew_j_w
Guru
Guru


Joined: 28 Jun 2003
Posts: 534
Location: York, UK

PostPosted: Fri Jan 09, 2004 4:31 pm    Post subject: Reply with quote

Just in addition to what Paradoxx said -U is equivalent to --upgradeonly - which as it says, will only upgrade and not downgrade.

Code:

emerge -U world


is what you want.

Andrew
Back to top
View user's profile Send private message
Dinini
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 236

PostPosted: Fri Jan 09, 2004 4:32 pm    Post subject: Re: downgrade packs? Reply with quote

Paradoxx wrote:
im traing to upgrade my gentoo whit emerge worl but it wanto downdrade programs i haw installd becus it in not stabel how do i setup so emerge ignor the packs i gount wanto downgrade?

You can't. That's the price you pay for mixing stable and unstable packages. -U will always want to downgrade unstable to stable packages if stable is what you have specified in your make.conf.

Either switch to unstable in your make.conf or get used to "emerge -UDp world" followed by "emerge --oneshot <individual packagenames>" for the packages you want to update in a mixed environment.
Back to top
View user's profile Send private message
Paradoxx
Apprentice
Apprentice


Joined: 13 Jan 2003
Posts: 197
Location: Sweden

PostPosted: Fri Jan 09, 2004 4:39 pm    Post subject: Re: downgrade packs? Reply with quote

Dinini wrote:
Paradoxx wrote:
im traing to upgrade my gentoo whit emerge worl but it wanto downdrade programs i haw installd becus it in not stabel how do i setup so emerge ignor the packs i gount wanto downgrade?

You can't. That's the price you pay for mixing stable and unstable packages. -U will always want to downgrade unstable to stable packages if stable is what you have specified in your make.conf.

Either switch to unstable in your make.conf or get used to "emerge -UDp world" followed by "emerge --oneshot <individual packagenames>" for the packages you want to update in a mixed environment.



i had unstabel in make.conf when i installd kde unstable but now its on stabel in make.conf
_________________
//Jag är dyslectiker

//pless dount complain im dyslectic


//i whas born in hell im going to hell
Back to top
View user's profile Send private message
elzbal
Guru
Guru


Joined: 31 Aug 2002
Posts: 364
Location: Seattle, WA, USA

PostPosted: Fri Jan 09, 2004 6:30 pm    Post subject: Reply with quote

I always check for updates with "emerge -Uup world". (Actually "U" implies "u", so it's a bit redundant.) This flag tells emerge to suggest only upgrades, and never downgrades. This lets me run a mix of stable and unstable packages as I see fit.

See "man emerge" for more details.
Back to top
View user's profile Send private message
andrew_j_w
Guru
Guru


Joined: 28 Jun 2003
Posts: 534
Location: York, UK

PostPosted: Fri Jan 09, 2004 11:47 pm    Post subject: Re: downgrade packs? Reply with quote

Dinini wrote:

You can't.


Sorry, but you can!

Code:

man emerge
<snip>
       --upgradeonly (-U)
              Updates  packages,  but excludes updates that would result in a lower ver-
              sion of the package being installed.  SLOTs  are  considered  at  a  basic
              level.
Back to top
View user's profile Send private message
Dinini
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 236

PostPosted: Sat Jan 10, 2004 12:12 am    Post subject: Reply with quote

I know what the man page says. :) I've also seen the bug reports. Portage often still tries to downgrade packages when you mix stable and unstable. It's always been rock solid when you keep the same use flag though. Yes, -U should work work according to the manual. Unfortunately "emerge -UuDp world" still wants to downgrade 5 packages on this system.
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