Article metadata
  • Copyright CC BY-SA 4.0. See licensing for additional details
  • Author
  • Created 2015-01-25
  • Last updated: 2015-02-28
  • Changes
    • 2015-02-28: update haskell if it breaks update

Update Install

Commands to make sure everything is updated and consistent

Excluding Kernel Sources from being deleted1

TODO: Verify that this doesn't block getting new kernel sources

cat <<EOF >> /etc/portage/sets.conf
# Exclude kernel sources from being purged by "emerge --depclean"
# https://archives.gentoo.org/gentoo-user/message/05119579cc8ab2b1030ee6eb74bf65a3
[kernels]
class = portage.sets.dbapi.OwnerSet
world-candidate = False
files = /usr/src
EOF

cat <<EOF >> /var/lib/portage/world_sets
@kernels
EOF

Doing an update

  • Update index

    emerge --sync
  • Rebuild if broken packages block updates

    • Haskell

      haskell-updater
  • Update the world

    emerge --ask --update --deep --newuse --with-bdeps=y @world
    • If there are "Detected broken packages" issues with haskell packages during update. Then fix and repeat update

      revdep-rebuild
      haskell-updater
      emerge --ask --update --deep --newuse --with-bdeps=y @world
  • Clean obsolete

    # Check what would be removed
    emerge -p --depclean
    # If happy then remove them
    emerge --ask --depclean
  • Update dependencies

    # I think revdep-rebuild show take care of it all
    revdep-rebuild
    # python just in case
    python-updater
    # haskell just in case
    haskell-updater
    # verify java is good
    java-check-environment
    # ruby?
    # ???
    # perl?
    # ???

References

Kazantsev, Mike, and Boris Fersing. “Re: [Gentoo-User] Can I Exclude a Package from –Depclean’s Consideration? Gentoo Archives: Gentoo-User,” June 11, 2009. https://archives.gentoo.org/gentoo-user/message/05119579cc8ab2b1030ee6eb74bf65a3.


  1. Kazantsev and Fersing, “Re.”