Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Frequently Asked Questions
  • Search

GF22: Circular upgrades and downgrades of a package

Some of the most commonly heard questions in the Gentoo Community, along with answers.
Post Reply
Advanced search
1 post • Page 1 of 1
Author
Message
kallamej
Administrator
Administrator
User avatar
Posts: 4993
Joined: Fri Jun 27, 2003 10:05 am
Location: Gothenburg, Sweden

GF22: Circular upgrades and downgrades of a package

  • Quote

Post by kallamej » Sun May 15, 2005 1:13 pm

Navigation: [Gentoo Fundamentals] [Table of Contents]

Q: I have this package that portage wants to first upgrade, then downgrade, then upgrade again and so on. Why does it do that and what can I do to stop it?

A: This is due to the way portage handles dependencies. When you run for instance

Code: Select all

emerge -Dup world
and there is a conflict between the highest available version of a package matching your ACCEPT_KEYWORDS setting in /etc/make.conf as well as any entries in /etc/portage/package.{keywords,mask,unmask} and another package depending on a lower version, portage doesn't simultaneously handle both your request to upgrade to the highest available version and the lower version dependency, see Bug 13632. If you have the lower version installed, portage wants to upgrade, and if you have the higher version installed, portage wants to downgrade.

Chances are that it is a temporary problem that will be fixed the next time you run emerge --sync. Otherwise, run

Code: Select all

emerge -Duptv world
when you have the higher version installed to see which the other package that depends on the lower version is. Next you have to decide for yourself what do. There are a number of solutions such as:
  • Hard masking the higher version of the yoyo-ing package by putting

    Code: Select all

    >=category/package-higher_version
    in /etc/portage/package.mask.
  • Upgrading the other package to a higher version (if such a version exists) that doesn't have the problematic version dependency. Typically this upgrade would be to install a testing branch version on an otherwise stable branch system. Put

    Code: Select all

    =category/other_package-higher_version ~arch
    in /etc/portage/package.keywords.
  • Disabling a USE-flag for the other package if it is caused by a conditional dependency. Put

    Code: Select all

    category/other_package -flag
    in /etc/portage/package.use.
2005-07-26: Added link to the relevant bug. --kallamej
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat
Top
Post Reply
1 post • Page 1 of 1

Return to “Frequently Asked Questions”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic