Skip to main content

Portage update helper commands.

Project description

Easier Gentoo system maintenance

Python versions PyPI - Version GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) CodeQL QA Tests Coverage Status Dependabot Documentation Status mypy uv pytest Ruff Downloads Stargazers pre-commit Prettier

@Tatsh Buy Me A Coffee Libera.Chat Mastodon Follow Patreon

This is a set of commands to simplify maintaining a Gentoo system.

Installation

Poetry

poetry add upkeep

Pip

pip install upkeep

emerges

This command will do the following:

  • Update Portage
  • Update @world with options --with-bdeps=y, --update, --deep, --newuse
  • Update live installations of packages (@live-rebuild)
  • Run emerge @preserved-rebuild
  • Run systemctl daemon-reexec (if applicable)
  • Update the kernel

There are flags to disable most parts of this functionality, such as --no-upgrade-kernel. Pass --help to see all the options.

Automatic kernel update process

Older versions of this tool supported various ways to update the kernel to boot from. However this is better left to the configuration and hooks of kernelinstall which is invoked by make install.

The automatic kernel update will only work if there are 2 kernels displayed with the command eselect --brief kernel list. The first one in the list must be the active kernel. The second one is the one to upgrade to. After switching to the new kernel, a .config must exist in /usr/src/linux or the command will not run make. If the configuration exists at /proc/config.gz it will be used.

If emerges fails to build the kernel because of the state of eselect kernel list, you can fix it and re-run the update by running upgrade-kernel.

The old kernel data in /boot will be stored in /root/.upkeep/old-kernels.

If you want to only rebuild the kernel, run rebuild-kernel.

ecleans

This command will run the following commands (or equivalents):

  • emerge --depclean
  • emerge @preserved-rebuild
  • revdep-rebuild
  • eclean-dist --deep
  • rm -fR /var/tmp/portage/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upkeep-1.7.1.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upkeep-1.7.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file upkeep-1.7.1.tar.gz.

File metadata

  • Download URL: upkeep-1.7.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for upkeep-1.7.1.tar.gz
Algorithm Hash digest
SHA256 c47f97cd5f69b3a8043bd44317fef77e12f3de34566890d9e2a65804cdc7efb6
MD5 346eb6614cbe3a4400ad7c6390bc164d
BLAKE2b-256 55f92d1f6a8f69344e4e9124fca170cb25ff3b6cbad6fe4ad03b3aadcf7c26ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for upkeep-1.7.1.tar.gz:

Publisher: publish.yml on Tatsh/upkeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file upkeep-1.7.1-py3-none-any.whl.

File metadata

  • Download URL: upkeep-1.7.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for upkeep-1.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7146b2aca1af39ced13af3b67f79af5a4d3ee6f5b06602cca1eb4c0f3166e6c8
MD5 d77bd891a6a68cf56e5b31bef89e676f
BLAKE2b-256 8458fb16f63d0bee02961a31f3a840b1e4e535f40bee2e4d18e3a5fdcd1a290d

See more details on using hashes here.

Provenance

The following attestation bundles were made for upkeep-1.7.1-py3-none-any.whl:

Publisher: publish.yml on Tatsh/upkeep

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page