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.0.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.0-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: upkeep-1.7.0.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.0.tar.gz
Algorithm Hash digest
SHA256 63582e4e2d68ea08b953119a83508f58c7ce00667a70a2a83bcd28b402ad09dd
MD5 6c144101f6f60db05b534470e65fdb0c
BLAKE2b-256 24411e15bfad3221f29207fd867751e93f0d1e6130d500d6d6e5b7fcd2829b4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for upkeep-1.7.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: upkeep-1.7.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fac2df083856c9dd4b4e25b41a8fb57397ed6dc36e600e0539a4b18c54d403d
MD5 5575cf6bd8d852c9502b100c26cd6ca2
BLAKE2b-256 dd123c73b1f2d72e3f523d81a15dbe48ebf74b02755e1b7b91bf609bb5ae0837

See more details on using hashes here.

Provenance

The following attestation bundles were made for upkeep-1.7.0-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