Elektrine lite

← Feed

@xgqt@functional.cafe

Post #1733393

2026-04-25 17:45 UTC

#Gentoo Ever wanted to select interactively which packages to update? Here's a helpful one-liner: `emerge -u $(eix --upgrade --only-names | fzf -m)` (`fzf -m` enables multi selection with TAB over the picked item)

Replies (4)

  • @mid_kid@fosstodon.org 2026-04-25 17:48

    @xgqt Nice trick! I just don't think eix --upgrade really does a good job at listing pending upgrades 😓

    Open ##2089239

  • @wyatt@polymaths.social 2026-04-25 17:54

    @xgqt This is very neat! I had no clue I could pipe in fzf. I'm currently on NixOS just because I had an audio issue I couldn't resolve on Gentoo and just wanted working audio. You're making me want to install Gentoo no bare metal again.

    Open ##2089243

  • @parona@fosstodon.org 2026-04-25 20:09

    @xgqt `pquery --format '{category}/{package}:{slot}' -u` might avoid eix weirdness, similarly would take into account slots. It would be slower of course. Otherwise I'd add -1/--oneshot to avoid adding packages to world. -u on its own might add it to world unless EMERGE_DEFAULT_OPTS already has it.

    Open ##2089246

  • @pietinger@infosec.exchange 2026-04-25 23:08

    @xgqt #Gentoo May I add to your one-liner (with the brilliant fzf; I hadn't heard of that before) that "eix -u" not only produces false positives, but that "emerge -u" for individual packages should really be "emerge -1u". -> https://wiki.gentoo.org/wiki/User:Pietinger/New_at_Gentoo#The_most_common_mistake_beginners_make_with_Gentoo

    Open ##2089250