Skip to content

Support for Flatpak, Homebrew, and MacPorts #9

Closed

Description

@Sk8teb0arder

What are you trying to do

Support for

• Flatpak
• Homebrew
• MacPorts

Proposed feature

I’d like to request support for additional package ecosystems in pkgtui:
• Flatpak
• Homebrew
• MacPorts

These package managers are widely used across Linux and macOS, and exposing their metadata in pkgtui would make the tool more universal. All three provide structured metadata through their CLI tools, so integration should be possible.

Additional Note on macOS / Apple Silicon Support

pkgtui could potentially run on macOS Apple Silicon (Rust produces native ARM64 binaries without issue), but the application currently has no package sources available on macOS.

Image

Since pkgtui only supports Linux package managers at the moment (APT, DNF, Pacman, Zypper, APK), the interface launches but cannot display any package data.

Adding support for Flatpak, Homebrew, and MacPorts would effectively enable full macOS compatibility and make pkgtui useful on Apple Silicon systems.

Thanks for considering it!

Which backend does this apply to?

apt

Activity

  1. added
    enhancement
    on Aug 26, 2026
  2. padovanl commented on Aug 26, 2026

    @padovanl
    Owner

    Thanks for the feature request! This is definitely something I’m interested in adding to pkgtui.
    Supporting Homebrew, MacPorts and Flatpak is feasible, and I think it would be a great step towards making pkgtui more cross platform, especially for macOS and Apple Silicon.
    I’ll need to introduce some improvements to the package manager abstraction first, since Flatpak has a slightly different model compared to traditional package managers.
    I’ll look into implementing these features as soon as possible. Thanks for the suggestion! 😊

  3. Sk8teb0arder commented on Aug 31, 2026

    @Sk8teb0arder
    Author

    Awesome! I'll give it a spin and get back to you if there are any issues.

  4. padovanl commented on Aug 31, 2026

    @padovanl
    Owner

    Thank you very much. Unfortunately, I don't have a Mac to test it on, so I based the implementation on the official documentation. If there are any issues, feel free to report them here and I'll be happy to fix them. For now, I'll leave the issue open. The current release is 1.8.0.

  5. Sk8teb0arder commented on Aug 31, 2026

    @Sk8teb0arder
    Author

    Hi Padovanl

    Tested homebrew install, got the error's attached below, it points to the Homebrew formula or cask not being published.

    brew install --cask pkgtui
    Warning: Cask 'pkgtui' is unavailable: No Cask with this name exists.
    ==> Searching for similarly named casks...
    Error: No casks found for pkgtui.

    and

    brew install pkgtui
    ==> Downloading Homebrew API data
    ✔︎ JSON API packages.arm64_tahoe.jws.json Downloaded 15.4MB/ 15.4MB
    Warning: No available formula with the name "pkgtui". Did you mean pkgsite?
    ==> Searching for similarly named formulae and casks...
    ==> Formulae
    pkgsite

    To install pkgsite, run:
    brew install pkgsite

  6. padovanl commented on Aug 31, 2026

    @padovanl
    Owner

    @Sk8teb0arder thank you for testing it and for letting me know. Unfortunately, as I mentioned, since I don't have a Mac, it's difficult for me to test this properly. I'll look into it as soon as possible.

    Thanks again for your support!
    But, as you can see, I'm on it 😉

  7. Sk8teb0arder commented on Aug 31, 2026

    @Sk8teb0arder
    Author

    No worries I have time and can assist with testing if required currently the fallback option of using curl script works as advertised. Brew and macports install list is populated and status is showing true status.

    curl -fLO https://github.com/padovanl/pkgtui/releases/latest/download/pkgtui_1.8.0_darwin_arm64.tar.gz
    tar -xzf pkgtui_1.8.0_darwin_arm64.tar.gz
    sudo mv pkgtui /usr/local/bin/>

  8. padovanl commented on Aug 31, 2026

    @padovanl
    Owner

    Thanks for testing and for the detailed feedback!

    If I understand correctly, it looks like the issue is limited to installing pkgtui itself through Homebrew, since the pkgtui Homebrew backend is working correctly once the application is running.

    The formula/cask for pkgtui simply isn't published on Homebrew yet, which explains the No available formula and No Cask with this name exists errors.

    The curl fallback works correctly, and Brew and MacPorts package lists and status detection are also working as expected.

    I'll look into the Homebrew distribution side as well. Thanks again for helping me test this!

  9. Sk8teb0arder commented on Aug 31, 2026

    @Sk8teb0arder
    Author

    No worries, glad to be of help.

    That is correct the Homebrew install is the only issue I found, please feel free to let me know when I can assist in testing the homebrew install.

  10. Sk8teb0arder commented on Aug 31, 2026

    @Sk8teb0arder
    Author

    Tested pkgtui 1.8.0 to verify flatpak and homebrew on Ubuntu 26.04 arm image running on a clockwork pi uConsole (Rpi CM5) all list working as expected package status reflects current status, only finding of note is packages marked "Not upgrading yet due to phasing:" are shown as "upgrade available".

    Image Image Image Image
  11. padovanl commented on Sep 1, 2026

    @padovanl
    Owner

    Thanks again for the detailed testing! Both points should be addressed now:

    Phasing packages showing as "upgrade available": fixed, and already out in v1.8.1. Packages Ubuntu's phased rollout is holding back are still listed as upgradable in the main list (an upgrade genuinely is available, you can grab it by name), but they now show up in the Upgrade conflicts screen (X) with an explicit reason — "held back by Ubuntu's phased rollout, not yet offered to this machine" — so it's clear why "Upgrade all" won't touch them yet.

    Homebrew brew install/brew install --cask pkgtui failing: this is expected, not a bug — the cask lives in a tap in this same repo rather than in homebrew-core, so it needs to be tapped first:

    brew tap padovanl/pkgtui https://github.com/padovanl/pkgtui
    brew install --cask pkgtui
    

    The reason it works this way: Homebrew only auto-discovers a tap's URL when the repo is named homebrew-. This repo is just pkgtui, so brew install --cask pkgtui alone has nowhere to look — Homebrew only searches homebrew-core (and any taps you've already added) by that name, and pkgtui isn't published there. I keep the cask definition inside this same repo (in Casks/) rather than a separate homebrew-pkgtui repo mainly to keep the release process simple: the release workflow's own GITHUB_TOKEN can commit the updated cask here on every release without needing a second repo or a separate personal access token. The trade-off is that extra explicit brew tap owner/repo step, since the repo name doesn't match Homebrew's auto-tap convention.

    I'll look at getting it into homebrew-core (or at least making the tap easier to discover, e.g. a dedicated homebrew-pkgtui repo) separately, but a plain brew install pkgtui/brew install --cask pkgtui without tapping first will never work with a custom tap like this one.

    Thanks again for all the testing — let me know if v1.8.1 looks right on your end!

  12. Sk8teb0arder commented on Sep 1, 2026

    @Sk8teb0arder
    Author

    Thank you for the amazing tool and work put in, truly appreciated!

    FYI, I tested the homebrew install and all went as expected. I suggest adding the Below noted steps in the manual for the Mac homebrew user install.

    Image
    1. After entering "brew install --cask pkgtui" a popup will ask the user to send pkgui to bin click "Done" .
    Image
    1. Open Settings->Privacy and Security and scroll down and find "pkgtui" was blocked to protect your Mac_ and click "Allow Anyway".
    Image
    1. Open terminal and enter pkgtui an Open “pkgtui”? pop up will be presented click "Open Anyway" .

    2. One last pop up requesting user password, enter password and pkgtui will now open.

    Note: these steps are only required during intitial install

  13. padovanl commented on Sep 1, 2026

    @padovanl
    Owner

    Thank you so much for testing this all the way through and taking the time to screenshot every step, this is exactly the kind of feedback that's hard to get without a Mac to test on myself!
    I've added your Gatekeeper walkthrough (with your screenshots, credited) to the README and the project site, so future macOS/Homebrew users won't be caught off guard by the first-launch security prompts. Really glad pkgtui has been useful to you!
    Between the phasing fix, the tap clarification and now this, everything raised here has a resolution, so I'll close this issue for now.
    If anything else comes up (on macOS or otherwise), please don't hesitate to open a new one or reply here.
    Thanks again for all the help getting pkgtui properly tested on macOS! 🙏

  14. Sk8teb0arder commented on Sep 1, 2026

    @Sk8teb0arder
    Author

    Happy to be of service and thank you for adding this functionality, it’s incredibly useful. Feel free to reach out if you’re in need of future testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions